Browse Source

compiles on LUCIA

François Massonnet 1 year ago
parent
commit
00d868c390

+ 39 - 0
EnKF-MPI-TOPAZ/Config/make.lucia

@@ -0,0 +1,39 @@
+# Library and include
+
+INC_NETCDFF = -I${EBROOTNETCDFMINFORTRAN}/include
+INC_NETCDF = -I${EBROOTNETCDF}/include
+LIB_NETCDF = -L${EBROOTNETCDF}/lib64 -lnetcdf
+LIB_NETCDFF = -L${EBROOTNETCDFMINFORTRAN}/lib -lnetcdff
+INC_LAPACK = -I${EBROOTSCALAPACK}/include
+LIB_LAPACK = -L${EBROOTSCALAPACK}/lib -lscalapack
+LIB_BLAS = -L${EBROOTOPENBLAS}/lib -lopenblas
+INC_BLAS = -I${EBROOTOPENBLAS}/include
+INC_FFT = -I${EBROOTFFTW}/include
+LIB_FFT = -L${EBROOTFFTW}/lib -lfftw3 -lfftw3_mpi
+
+#INCS = $(INC_NETCDF) $(INC_FFT) $(INC_NETCDFF) $(INC_LAPACK) $(INC_BLAS)
+INCS = $(INC_NETCDF) $(INC_FFT) $(INC_NETCDFF)                $(INC_BLAS)
+LIBS = $(LIB_NETCDF) $(LIB_NETCDFF) $(LIB_FFT) $(LIB_LAPACK) $(LIB_BLAS)
+
+CF90 = mpif90
+CPPFLAGS = -D_G95_ -DQMPI
+CF77 = $(CF90)
+LD = $(CF90)
+CPP = cpp -traditional-cpp
+CC = mpicc
+
+CPPARCH =
+CPPFLAGS +=
+
+SIZEO = -fdefault-real-8
+OPTO = -O3 -fallow-argument-mismatch
+DEBUG_FLAGS = #-g -traceback -W1 -warn unused -warn uncalled -debug extended -debug-parameters -ftrapuv -fpe0
+
+FFLAGS = $(SIZEO) $(OPTO) $(DEBUG_FLAGS) $(INCS)
+CFLAGS = -Df2cFortran $(OPTO) $(INCS)
+LINKFLAGS = $(SIZEO) $(OPTO) $(DEBUG_FLAGS) $(LIBS)
+
+# language-specific flags
+#
+F77FLG =
+F90FLG =

+ 0 - 0
EnKF-MPI-TOPAZ/Config/make.mn4


+ 0 - 0
EnKF-MPI-TOPAZ/Config/make.zenobe


+ 1 - 1
EnKF-MPI-TOPAZ/README.txt

@@ -1,3 +1,3 @@
-- To compile, the configuration make.mn3 has to be chosen
+- To compile, the configuration make.<environment> has to be chosen where <environment> is the architecture-specific set of paths to libraries
 
 MAKE SURE TO first source enkf_modules_to_load.txt

+ 0 - 23
EnKF-MPI-TOPAZ/list.txt

@@ -1,23 +0,0 @@
-en     1 75  2
-hdivb  1 75  2
-hdivn  1 75  2
-rhop   1 75  2
-rotb   1 75  2
-rotn   1 75  2
-sb     1 75  2
-sn     1 75  2
-sshb   0  0  2
-ssh_m  0  0  2
-sshn   0  0  2
-sss_m  0  0  2
-sst_m  0  0  2
-ssu_m  0  0  2
-ssv_m  0  0  2 
-tb     1 75  2
-tn     1 75  2
-ub     1 75  2
-un     1 75  2
-utau_b 0  0  2
-vb     1 75  2
-vn     1 75  2
-vtau_b 0  0  2

+ 1 - 1
EnKF-MPI-TOPAZ/make.inc

@@ -1 +1 @@
-Config/make.zenobe
+Config/make.lucia

+ 0 - 1
EnKF-MPI-TOPAZ/makefile

@@ -54,7 +54,6 @@ m_insitu.o: nfw.o mod_measurement.o m_get_mod_xyz.o m_io_mod_fld.o
 m_local_analysis.o: mod_measurement.o m_point2nc.o m_parameters.o
 
 EnKF: $(ENKF_OBJ)
-	@echo "FRANCOIS"
 	@exit
 	@echo "->EnKF"
 	@cd ./TMP ; $(LD) $(LINKFLAGS) -o ../EnKF $(ENKF_OBJ)

+ 0 - 0
README.md


+ 1 - 1
conversion_uf/README.txt

@@ -3,4 +3,4 @@ This has to be compiled on the HPC!!!
 Don't forget to source the environment ../enkf_modules_to_load.txt
 
 When the p_prep_obs_ORCA1 and p_prep_obs_ORCA25 scripts are compiled, 
-open convert.bash, check it, and run it (always on MN3)
+open convert.bash, check it, and run it (always on the local HPC)

+ 1 - 1
conversion_uf/make.inc

@@ -1 +1 @@
-../EnKF-MPI-TOPAZ/Config/make.zenobe
+../EnKF-MPI-TOPAZ/Config/make.lucia

+ 0 - 0
conversion_uf/mask-ORCA1.nc


+ 0 - 0
conversion_uf/mask-ORCA25.nc


+ 15 - 2
enkf_modules_to_load.txt

@@ -9,6 +9,8 @@ set +ue
 #module load MKL
 #module load NETCDF/4.4.1.1
 
+module load mpi/openmpi/4.1.6
+
 #If u and e flags were set, set it again
 
 #if [ $(echo $set_flags | grep -c "u" ) -eq 1 ];then
@@ -20,6 +22,17 @@ set +ue
 
 
 #====
+module --force purge
+#module load EasyBuild/2022a
+#module load mpi/openmpi/4.1.3
+#module load netCDF-Fortran/4.6.0-gompi-2022a
+#module load ScaLAPACK/2.2.0-gompi-2022a-fb
+#module load FFTW.MPI/3.3.10-gompi-2022a
+
+module --force purge
+module load EasyBuild/2023a
+module load netCDF-Fortran/4.6.1-gompi-2023a 
+module load Perl-bundle-CPAN/5.36.1-GCCcore-12.3.0
+module load ScaLAPACK/2.2.0-gompi-2023a-fb 
+module load FFTW.MPI/3.3.10-gompi-2023a
 
-my_modules
-module load netCDF-Fortran/4.4.4-foss-2016b