-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from zhangsp8/master
Code optimization & reorganize files.
- Loading branch information
Showing
38 changed files
with
552 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Makeoptions.gnu | ||
Makeoptions.github |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# ========================================================== | ||
# mpif90 - gnu | ||
|
||
# please "source /share/home/dq089/soft/gnu-env" first. | ||
|
||
FF = mpif90 | ||
|
||
NETCDF_LIB = /share/home/dq089/soft/netcdf-fortran-4.6.1-gnu/lib | ||
NETCDF_INC = /share/home/dq089/soft/netcdf-fortran-4.6.1-gnu/include | ||
|
||
MOD_CMD = -J | ||
|
||
FOPTS = -fdefault-real-8 -ffree-form -C -g -u -xcheck=stkovf \ | ||
-ffpe-trap=invalid,zero,overflow -fbounds-check \ | ||
-mcmodel=medium -fbacktrace -fdump-core -cpp \ | ||
-ffree-line-length-0 | ||
|
||
INCLUDE_DIR = -I../include -I../share -I../mksrfdata -I../mkinidata -I../main -I$(NETCDF_INC) | ||
LDFLAGS = -L${NETCDF_LIB} -lnetcdff -llapack -L/share/home/dq089/soft/lib -lblas.gnu | ||
|
||
#============================================================ | ||
# CaMa-Flood Mkinclude (for Linux, gfortran) | ||
|
||
RM = /bin/rm -f | ||
CP = /bin/cp | ||
#---- | ||
# Pre-Prosessing options | ||
# DMPI=-DUseMPI: activate when MPI parallelization is used | ||
# DCDF=-DUseCDF: activate when using netCDF, comment out when not needed | ||
# DATM=-DNoAtom: activate when OMP ATOMIC calculation should be avoided (bit identical simulation) | ||
#---- | ||
#DMPI=-DUseMPI | ||
DCDF=-DUseCDF | ||
#DATM=-DNoAtom | ||
CFLAGS=$(DMPI) $(DCDF) $(DATM) | ||
#---- | ||
FCMP = gfortran -fopenmp | ||
FC = gfortran | ||
FFLAGS = -O3 -Wall -cpp -free -fimplicit-none -fbounds-check -fbacktrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# ======================================================= | ||
# mpif90 - intel | ||
|
||
# please "source /share/home/dq089/soft/intel-env" first. | ||
|
||
FF = mpif90 | ||
|
||
NETCDF_LIB = /share/home/dq089/soft/netcdf-fortran-4.6.1-intel/lib | ||
NETCDF_INC = /share/home/dq089/soft/netcdf-fortran-4.6.1-intel/include | ||
|
||
MOD_CMD = -module | ||
|
||
#<<<<<<< HEAD | ||
#FOPTS = -qopenmp -g -traceback -r8 -free -check uninit | ||
# -r8 -free -O0 -check uninit -check bounds -check pointers \ | ||
# -traceback -assume byterecl -pthread -heap-arrays #-nogen-interface | ||
|
||
#INCLUDE_DIR = -I../include -I../share -I../mksrfdata \ | ||
# -I../mkinidata -I../main -I../hydro -I${NETCDF_INC} | ||
#LDFLAGS = -L${NETCDF_LIB} -lnetcdff | ||
|
||
|
||
FOPTS = -qopenmp -O2 -traceback -r8 -free -check uninit -check bounds | ||
|
||
LDFLAGS = -L${NETCDF_LIB} -lnetcdff -llapack -L/share/home/dq089/soft/lib -lgfortran -lblas.intel | ||
|
||
#============================================================ | ||
# CaMa-Flood Mkinclude (for Linux, gfortran) | ||
|
||
RM = /bin/rm -f | ||
CP = /bin/cp | ||
#---- | ||
# Pre-Prosessing options | ||
# DMPI=-DUseMPI: activate when MPI parallelization is used | ||
# DCDF=-DUseCDF: activate when using netCDF, comment out when not needed | ||
# DATM=-DNoAtom: activate when OMP ATOMIC calculation should be avoided (bit identical simulation) | ||
#---- | ||
#DMPI=-DUseMPI | ||
DCDF=-DUseCDF | ||
#DATM=-DNoAtom | ||
CFLAGS=$(DMPI) $(DCDF) $(DATM) | ||
#---- | ||
FCMP = ifort -qopenmp | ||
FC = ifort | ||
LFLAGS = | ||
FFLAGS = -O3 -warn all -fpp -free -assume byterecl -heap-arrays -nogen-interface -lpthread -static-intel |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# ======================================================= | ||
# mpif90 - gfortran | ||
# | ||
|
||
FF = mpif90 -fopenmp | ||
|
||
NETCDF_LIB = /usr/lib/x86_64-linux-gnu | ||
NETCDF_INC = /usr/include | ||
|
||
MOD_CMD = -J | ||
|
||
# determine the gfortran version | ||
GCC_VERSION := "`gcc -dumpversion`" | ||
IS_GCC_ABOVE_10 := $(shell expr "$(GCC_VERSION)" ">=" "10") | ||
ifeq "$(IS_GCC_ABOVE_10)" "1" | ||
FOPTS = -fdefault-real-8 -ffree-form -C -g -u -xcheck=stkovf \ | ||
-ffpe-trap=invalid,zero,overflow -fbounds-check \ | ||
-mcmodel=medium -fbacktrace -fdump-core -cpp \ | ||
-ffree-line-length-0 -fallow-argument-mismatch | ||
else | ||
FOPTS = -fdefault-real-8 -ffree-form -C -g -u -xcheck=stkovf \ | ||
-ffpe-trap=invalid,zero,overflow -fbounds-check \ | ||
-mcmodel=medium -fbacktrace -fdump-core -cpp \ | ||
-ffree-line-length-0 | ||
endif | ||
|
||
INCLUDE_DIR = -I../include -I../share -I../mksrfdata -I../mkinidata -I../main -I$(NETCDF_INC) | ||
LDFLAGS = -L$(NETCDF_LIB) -lnetcdff -lnetcdf -llapack -lblas | ||
|
||
|
||
|
||
#============================================================ | ||
# CaMa-Flood Mkinclude (for Linux, gfortran) | ||
|
||
RM = /bin/rm -f | ||
CP = /bin/cp | ||
#---- | ||
# Pre-Prosessing options | ||
# DMPI=-DUseMPI: activate when MPI parallelization is used | ||
# DCDF=-DUseCDF: activate when using netCDF, comment out when not needed | ||
# DATM=-DNoAtom: activate when OMP ATOMIC calculation should be avoided (bit identical simulation) | ||
#---- | ||
#DMPI=-DUseMPI | ||
DCDF=-DUseCDF -DUseCDF_CMF | ||
#DATM=-DNoAtom | ||
CFLAGS=$(DMPI) $(DCDF) $(DATM) | ||
#---- | ||
FCMP = /usr/bin/gfortran -fopenmp | ||
FC = /usr/bin/gfortran | ||
|
||
LFLAGS = | ||
FFLAGS = -O3 -Wall -cpp -free -fimplicit-none -fbounds-check -fbacktrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
0
run/cama_flood.nml → run/CaMa/cama_flood.nml
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.