±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2302  |  »Ø¸´: 26

Å£ÄÌÌÀ

гæ (³õÈëÎÄ̳)

ÒýÓûØÌû:
20Â¥: Originally posted by ä±¾£ at 2014-05-14 10:59:03
ͬÊÇÌìÑÄÂÙÂäÈË...

¡£ÎÒÅöµ½µÄÊÇÄãºóÃæÄǸösyntax error¡£ËäÈ»ÉÏÃæÓÐλ´óţ˵ÁËÊÇ×¢Ê͵ÄÎÊÌ⣬µ«ÎÒûÕÒµ½ÏàÓ¦µÄ×¢ÊÍ¡£ÔÚVASPµÄÂÛ̳ÉÏÓÐλ´ó¸çÒ²Åöµ½Í¬ÑùÎÊÌ⣬Ëû˵ÔÚFLAGÉϼÓ-fpp¾Í½â¾öÁË¡£¿ÉÊÇÎÒÊÔÁËҲû³É¹¦¡£ÎÒµÄmakefileÈçÏ£º
.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for Pentium/Athlon/Opteron
# bases systems
# we recommend this makefile for both Intel as well as AMD systems
# for AMD based systems appropriate BLAS and fftw libraries are
# however mandatory (whereas they are optional for Intel platforms)
#
# The makefile was tested only under Linux on Intel and AMD platforms
# the following compiler versions have been tested:
#  - ifc.7.1  works stable somewhat slow but reliably
#  - ifc.8.1  fails to compile the code properly
#  - ifc.9.1  recommended (both for 32 and 64 bit)
#  - ifc.10.1 partially recommended (both for 32 and 64 bit)
#             tested build 20080312 Package ID: l_fc_p_10.1.015
#             the gamma only mpi version can not be compiles
#             using ifc.10.1
#
# it might be required to change some of library pathes, since
# LINUX installation vary a lot
# Hence check ***ALL*** options in this makefile very carefully
#-----------------------------------------------------------------------
#
# BLAS must be installed on the machine
# there are several options:
# 1) very slow but works:
#   retrieve the lapackage from ftp.netlib.org
#   and compile the blas routines (BLAS/SRC directory)
#   please use g77 or f77 for the compilation. When I tried to
#   use pgf77 or pgf90 for BLAS, VASP hang up when calling
#   ZHEEV  (however this was with lapack 1.1 now I use lapack 2.0)
# 2) more desirable: get an optimized BLAS
#
# the two most reliable packages around are presently:
# 2a) Intels own optimised BLAS (PIII, P4, PD, PC2, Itanium)
#     http://developer.intel.com/software/products/mkl/
#   this is really excellent, if you use Intel CPU's
#
# 2b) probably fastest SSE2 (4 GFlops on P4, 2.53 GHz, 16 GFlops PD,
#     around 30 GFlops on Quad core)
#   Kazushige Goto's BLAS
#   http://www.cs.utexas.edu/users/kgoto/signup_first.html
#   http://www.tacc.utexas.edu/resources/software/
#
#-----------------------------------------------------------------------

# all CPP processed fortran files have the extension .f90
SUFFIX=.f90

#-----------------------------------------------------------------------
# fortran compiler and linker
#-----------------------------------------------------------------------
FC=ifort
# fortran linker
FCL=$(FC)


#-----------------------------------------------------------------------
# whereis CPP ?? (I need CPP, can't use gcc with proper options)
# that's the location of gcc for SUSE 5.3
#
#  CPP_   =  /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -P -C
#
# that's probably the right line for some Red Hat distribution:
#
#  CPP_   =  /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/cpp -P -C
#
#  SUSE X.X, maybe some Red Hat distributions:

CPP_ =  ./preprocess <$*.F | /usr/bin/cpp -P -C -traditional >$*$(SUFFIX)

#-----------------------------------------------------------------------
# possible options for CPP:
# NGXhalf             charge density   reduced in X direction
# wNGXhalf            gamma point only reduced in X direction
# avoidalloc          avoid ALLOCATE if possible
# PGF90               work around some for some PGF90 / IFC bugs
# CACHE_SIZE          1000 for PII,PIII, 5000 for Athlon, 8000-12000 P4, PD
# RPROMU_DGEMV        use DGEMV instead of DGEMM in RPRO (depends on used BLAS)
# RACCMU_DGEMV        use DGEMV instead of DGEMM in RACC (depends on used BLAS)
# tbdyn                 MD package of Tomas  Bucko
#-----------------------------------------------------------------------

CPP     = $(CPP_)  -DHOST=\"LinuxIFC\" \
          -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf \
#          -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# general fortran flags  (there must a trailing blank on this line)
# byterecl is strictly required for ifc, since otherwise
# the WAVECAR file becomes huge
#-----------------------------------------------------------------------

FFLAGS =  -FR -lowercase -assume byterecl

#-----------------------------------------------------------------------
# optimization
# we have tested whether higher optimisation improves performance
# -axK  SSE1 optimization,  but also generate code executable on all mach.
#       xK improves performance somewhat on XP, and a is required in order
#       to run the code on older Athlons as well
# -xW   SSE2 optimization
# -axW  SSE2 optimization,  but also generate code executable on all mach.
# -tpp6 P3 optimization
# -tpp7 P4 optimization
#-----------------------------------------------------------------------

# ifc.9.1, ifc.10.1 recommended
OFLAG=-O2 -ip -ftz

OFLAG_HIGH = $(OFLAG)
OBJ_HIGH =
OBJ_NOOPT =
DEBUG  = -FR -O0
INLINE = $(OFLAG)

#-----------------------------------------------------------------------
# the following lines specify the position of BLAS  and LAPACK
# VASP works fastest with the libgoto library
# so that's what we recommend
#-----------------------------------------------------------------------

# mkl.10.0
# set -DRPROMU_DGEMV  -DRACCMU_DGEMV in the CPP lines
#BLAS=-L/opt/intel/mkl100/lib/em64t -lmkl -lpthread

# even faster for VASP Kazushige Goto's BLAS
# http://www.cs.utexas.edu/users/kgoto/signup_first.html
# parallel goto version requires sometimes -libverbs
# BLAS=  /opt/libs/libgoto/libgoto.so
BLAS= /opt/software/goto2/libgoto.so
# LAPACK, simplest use vasp.5.lib/lapack_double
LAPACK= ../vasp.5.lib/lapack_double.o

# use the mkl Intel lapack
#LAPACK= -lmkl_lapack

#-----------------------------------------------------------------------

LIB  = -L../vasp.5.lib -ldmy \
     ../vasp.5.lib/linpack_double.o $(LAPACK) \
     $(BLAS)

# options for linking, nothing is required (usually)
LINK    =

#-----------------------------------------------------------------------
# fft libraries:
# VASP.5.2 can use fftw.3.1.X (http://www.fftw.org)
# since this version is faster on P4 machines, we recommend to use it
#-----------------------------------------------------------------------
# FFT3D   = fft3dfurth.o fft3dlib.o

# alternatively: fftw.3.1.X is slighly faster and should be used if available
FFT3D   = fftw3d.o fft3dlib.o   /opt/software/fftw333-double/lib/libfftw3.a
21Â¥2014-05-14 14:41:27
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ä±¾£

ľ³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
21Â¥: Originally posted by Å£ÄÌÌÀ at 2014-05-14 14:41:27
¡£ÎÒÅöµ½µÄÊÇÄãºóÃæÄǸösyntax error¡£ËäÈ»ÉÏÃæÓÐλ´óţ˵ÁËÊÇ×¢Ê͵ÄÎÊÌ⣬µ«ÎÒûÕÒµ½ÏàÓ¦µÄ×¢ÊÍ¡£ÔÚVASPµÄÂÛ̳ÉÏÓÐλ´ó¸çÒ²Åöµ½Í¬ÑùÎÊÌ⣬Ëû˵ÔÚFLAGÉϼÓ-fpp¾Í½â¾öÁË¡£¿ÉÊÇÎÒÊÔÁËҲû³É¹¦¡£ÎÒµÄmakefileÈç ...

Ëû˵µÄ×¢Ê;ÍÊÇб¸ÜºÅ¼ÓÐǺÅ֮ǰµÄÄÚÈÝ£º/*...*/
Õâ¸ö×¢ÊͲ»ÖªµÀÊÇÄĸöÓïÑÔÀïµÄÓï·¨£¬´ò¿ªVASP½âѹĿ¼ÏµÄbase.f90¾Í¿ÉÒÔ¿´µ½¿ªÍ·ÓÐÒ»¶ÑÕâÑùµÄ×¢ÊÍ¡£ÕâÑùµÄ×¢ÊÍÔÚfortranÀïÃæÏÔÈ»ÊDz»ºÏÓï·¨µÄ£¬µ«ÊÇÎÒÊÔ×Åɾ³ýÕâЩעÊÍ£¬±àÒëµÄʱºòËü»á×Ô¶¯Ìí¼Ó»ØÈ¥¡£
˳±ãÎÊÎÊÄãÌáµ½µÄVASPÂÛ̳ÀïÄǸöÌû×ÓµÄÁ´½ÓÊǶàÉÙÄØ£¬ÎÒÒ²²Î¿¼²Î¿¼¡£
22Â¥2014-05-14 14:58:50
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ä±¾£

ľ³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
21Â¥: Originally posted by Å£ÄÌÌÀ at 2014-05-14 14:41:27
¡£ÎÒÅöµ½µÄÊÇÄãºóÃæÄǸösyntax error¡£ËäÈ»ÉÏÃæÓÐλ´óţ˵ÁËÊÇ×¢Ê͵ÄÎÊÌ⣬µ«ÎÒûÕÒµ½ÏàÓ¦µÄ×¢ÊÍ¡£ÔÚVASPµÄÂÛ̳ÉÏÓÐλ´ó¸çÒ²Åöµ½Í¬ÑùÎÊÌ⣬Ëû˵ÔÚFLAGÉϼÓ-fpp¾Í½â¾öÁË¡£¿ÉÊÇÎÒÊÔÁËҲû³É¹¦¡£ÎÒµÄmakefileÈç ...

ÄúºÃ£¬ÎÒËѵ½ÁËÄã˵µÄÄǸöÌû×Ó£¬²»¹ýÄã֮ǰ³¢ÊÔ¼Ó-fppÊǼÓÔÚÄĸöλÖÃÄØ£¿
23Â¥2014-05-14 16:57:35
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Å£ÄÌÌÀ

гæ (³õÈëÎÄ̳)

ÒýÓûØÌû:
23Â¥: Originally posted by ä±¾£ at 2014-05-14 16:57:35
ÄúºÃ£¬ÎÒËѵ½ÁËÄã˵µÄÄǸöÌû×Ó£¬²»¹ýÄã֮ǰ³¢ÊÔ¼Ó-fppÊǼÓÔÚÄĸöλÖÃÄØ£¿...

´ÓËûµÄmakefileÀ´¿´£¬ËûÔÚFFLAGS =  -FR -lowercase -assume bytereclÖмÓÁË-fpp¡£
24Â¥2014-05-15 16:49:11
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Å£ÄÌÌÀ

гæ (³õÈëÎÄ̳)

ÒýÓûØÌû:
23Â¥: Originally posted by ä±¾£ at 2014-05-14 16:57:35
ÄúºÃ£¬ÎÒËѵ½ÁËÄã˵µÄÄǸöÌû×Ó£¬²»¹ýÄã֮ǰ³¢ÊÔ¼Ó-fppÊǼÓÔÚÄĸöλÖÃÄØ£¿...

ÎÒËÑË÷ÁËÏÂËûmakefileÖÐËùÓÐ-fpp£¬·¢ÏÖËû»¹ÔÚmakefile×îºóÒ»²¿·ÖÒ²¼ÓÁË¡£ÏÖÔÚÄÜÕý³£±àÒëÏÂÈ¥ÁË¡£

» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©

25Â¥2014-05-15 17:15:54
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dingniu2

ľ³æ (ÕýʽдÊÖ)

Ëͺ컨һ¶ä
ÒýÓûØÌû:
25Â¥: Originally posted by Å£ÄÌÌÀ at 2014-05-15 17:15:54
ÎÒËÑË÷ÁËÏÂËûmakefileÖÐËùÓÐ-fpp£¬·¢ÏÖËû»¹ÔÚmakefile×îºóÒ»²¿·ÖÒ²¼ÓÁË¡£ÏÖÔÚÄÜÕý³£±àÒëÏÂÈ¥ÁË¡£...

Óöµ½Í¬ÑùÎÊÌ⣬ÇëÎÊFFLAGS =  -FR -lowercase -assume byterecl¸ÄΪFFLAGS =  -FR -lowercase -assume byterecl -fppÂð£¿
makefile×îºóÒ»²¿·ÖÒ²¼Ó-fppÊÇÔÚÄÄÀï¼Ó£¿
лл¡£
½¡¿µ×îÖØÒª
26Â¥2015-01-30 12:05:15
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

lhllqy

гæ (³õÈëÎÄ̳)

ÎÒÒ²Óöµ½Í¬ÑùµÄÎÊÌ⣬ Â¥Ö÷½â¾öÁËô
27Â¥2016-09-19 22:11:07
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ä±¾£ µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] ÇóÖú071001µ÷¼Á£¡£¡£¡ +3 »ÆÊØËÉ 2026-04-05 4/200 2026-04-05 21:01 by barlinike
[¿¼ÑÐ] 081200-11408-276ѧ˶Çóµ÷¼Á +4 ´Þwj 2026-04-05 4/200 2026-04-05 20:29 by à£à£à£0119
[¿¼ÑÐ] 085500»úеר˶³õÊÔ288Çóµ÷¼Á +3 GZJguo666- 2026-04-05 3/150 2026-04-05 18:06 by jkddd
[¿¼ÑÐ] µç×ÓÐÅÏ¢µ÷¼Á½»²æÑ§¿ÆÓÐÍÆ¼öÂð +6 jhtfeybgj 2026-04-01 9/450 2026-04-05 11:13 by Öí»á·É
[¿¼ÑÐ] 283·ÖÇóµ÷¼Á +9 ÊÔÊÔ¿´ß 2026-04-04 9/450 2026-04-05 10:27 by ¹û¶³´óÍõ
[¿¼ÑÐ] Çó +5 »¯¹¤×¨Ë¶323·Ö 2026-04-04 5/250 2026-04-05 08:02 by 544594351
[¿¼ÑÐ] ²ÄÁϹ¤³Ì085601Êý¶þÓ¢Ò»335Çóµ÷¼Á +6 Ë«ÂíβƦÀϰå2 2026-03-31 6/300 2026-04-04 22:29 by hemengdong
[¿¼ÑÐ] ¡£ +5 ÎíÓ뺣 2026-04-02 6/300 2026-04-04 19:53 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 325Çóµ÷¼Á +4 ´º·ç²»½èÒâ 2026-04-04 4/200 2026-04-04 14:46 by ÏæÅ©´¢ÄܲÄÁÏ
[¿¼ÑÐ] 22408Çóµ÷¼Á 354·Ö ¿É¿çרҵ +3 hannnnnnn 2026-04-04 3/150 2026-04-04 14:35 by ÍÁľ˶ʿÕÐÉú
[¿¼ÑÐ] 311Çóµ÷¼Á +20 zchqwer 2026-04-01 22/1100 2026-04-03 22:09 by lglzsd
[¿¼ÑÐ] 285Çóµ÷¼Á +7 AZMK 2026-04-02 9/450 2026-04-03 11:12 by wanwan00
[¿¼²©] É격ÇóÖú +3 Reee1Llll 2026-04-01 3/150 2026-04-02 22:29 by ÕâÊÇÒ»¸öÎÞÁĵÄê
[¿¼ÑÐ] ѧ˶»¯Ñ§¹¤³ÌÓë¼¼Êõ£¬Ò»Ö¾Ô¸Öйúº£Ñó´óѧ320+Çóµ÷¼Á +8 ÅûÐÇºÓ 2026-04-02 8/400 2026-04-02 14:12 by oooqiao
[¿¼ÑÐ] ³õÊÔ301£¬´úÂë085701»·¾³¹¤³Ì£¬±¾Ë¶Ò»Ö£¬ËÄÁù¼¶Òѹý£¬ÓжþÇøÒ»×÷£¬¹²·¢±í5ƪÂÛÎÄ +6 axibli 2026-04-01 6/300 2026-04-02 13:42 by Ecowxq666£¡
[¿¼ÑÐ] ²ÄÁϹ¤³Ì322·Ö +8 ¹þ¹þ¹þºðºðºð¹þ 2026-04-01 8/400 2026-04-02 11:53 by 3041
[¿¼ÑÐ] ²ÄÁÏר˶322·Ö +11 ¹þ¹þ¹þºðºðºð¹þ 2026-04-01 11/550 2026-04-02 10:52 by lnilvy
[¿¼ÑÐ] 298Çóµ÷¼Á +4 ʲôÊÇÅÖÍ·Óã 2026-03-30 6/300 2026-04-01 22:06 by ¿Í¶ûÃÀµÂ
[¿¼ÑÐ] 284Çóµ÷¼Á +12 СÐÜ¡«¡« 2026-03-31 12/600 2026-04-01 20:23 by »¨??
[¿¼ÑÐ] ±¾2Ò»Ö¾Ô¸C9-333·Ö£¬²ÄÁÏ¿ÆÑ§Ó빤³Ì£¬Çóµ÷¼Á +9 ÉýÉý²»½µ 2026-03-31 9/450 2026-03-31 18:01 by Î޼ʵIJÝÔ­
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û