@@ -173,7 +173,16 @@ dashL= $(empty) -L
173173# --------------------------------------------------------------------------
174174
175175 FLAG_4 = -DMULTIPROCESSOR
176- PARLIB = -lmetis # -L/usr/local/lib -lmetis
176+ # If using METIS 5 or above, uncomment FLAG_411 and read the file readme_metis in folder METIS_readme for detail
177+ FLAG_411 = -DMETIS_5
178+ # If FLAG_411 is defined, uncomment path below
179+ PARLIB =
180+ PARTINCS = -I /usr /local /install /metis /5.1.0 /intel /19 /include
181+ PARTLIBS = -L /usr /local /install /metis /5.1.0 /intel /19 /lib -lmetis
182+ # If FLAG_411 is not defined, uncomment path below
183+ # PARLIB = -lmetis #-L/usr/local/lib -lmetis
184+ # PARTINCS =
185+ # PARTLIBS =
177186
178187# --------------------------------------------------------------------------
179188# WATER_QUALITY INCLUDE EPA WATER QUALITY MOD
@@ -486,7 +495,8 @@ dashL= $(empty) -L
486495# FLAG_40 = -DLIMITER_VER_ADV
487496# --------------------------------------------------------------------------
488497# SPECIAL PARTITION
489- # This flag can make sure the identical repeat run for same amount of CPUs
498+ # This flag can make sure the identical repeat run for same amount of CPUs
499+ # (there should be no opt = -O3 when compilation)
490500# --------------------------------------------------------------------------
491501# FLAG_42 = -DPARTITION_SPECIAL
492502
@@ -645,18 +655,18 @@ dashL= $(empty) -L
645655 $(FLAG_31 ) $(FLAG_32 ) $(FLAG_33 ) $(FLAG_34 ) \
646656 $(FLAG_35 ) $(FLAG_36 ) $(FLAG_37 ) $(FLAG_38 ) \
647657 $(FLAG_39 ) $(FLAG_40 ) $(FLAG_41 ) $(FLAG_42 ) \
648- $(FLAG_43 ) $(FLAG_44 ) $(FLAG_80 )$(FLAG_LAM )\
658+ $(FLAG_43 ) $(FLAG_44 ) $(FLAG_80 ) $(FLAG_LAM ) $( FLAG_411 )\
649659 $(FLAG_101 ) $(FLAG_102 ) $(FLAG_103 ) $(FLAG_104 ) $(FLAG_105 )\
650660 $(FLAG_211 ) $(FLAG_212 ) $(FLAG_213 ) $(FLAG_251 ) $(FLAG_261 ) $(FLAG_262 )\
651661 $(FLAG_USE_NETCDF4 ) $(FLAG_USE_COMPRESSION )
652662# --------------------------------------------------------------------------
653663# Libraries
654664# --------------------------------------------------------------------------
655665
656- LIBS = $(LIBDIR ) $(CLIB ) $(PARLIB ) $(IOLIBS ) $(DTLIBS )\
666+ LIBS = $(LIBDIR ) $(CLIB ) $(PARLIB ) $( PARTLIBS ) $(IOLIBS ) $(DTLIBS )\
657667 $(MPILIB ) $(GOTMLIB ) $(KFLIB ) $(BIOLIB ) \
658668 $(OILIB ) $(VISITLIB ) $(PROJLIBS ) $(PETSC_LIB )
659669
660670 INCS = $(INCDIR ) $(IOINCS ) $(GOTMINCS ) $(BIOINCS )\
661- $(VISITINCPATH ) $(PROJINCS ) $(DTINCS ) \
671+ $(VISITINCPATH ) $(PROJINCS ) $(DTINCS ) $( PARTINCS ) \
662672 $(PETSC_FC_INCLUDES )
0 commit comments