Changes between Version 44 and Version 45 of Lorenz_96_model
- Timestamp:
- Jun 3, 2024, 10:26:21 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Lorenz_96_model
v44 v45 19 19 === 1. Compile and run the forward model without assimilation === 20 20 21 First change in the file `make.arch/linux_gfortran .h` the line21 First change in the file `make.arch/linux_gfortran_openmpi.h` the line 22 22 {{{ 23 23 CPP_DEFS = -DUSE_PDAF … … 30 30 {{{ 31 31 cd models/lorenz96 32 make lorenz_96 PDAF_ARCH=linux_gfortran 32 make lorenz_96 PDAF_ARCH=linux_gfortran_openmpi 33 33 }}} 34 34 You have to ensure 35 that in the machine-specific make include file `linux_gfortran .h` `-DUSE_PDAF` is not defined36 for CPP_DEFS (such that calls to PDAF are not active). You can replace `linux_gfortran ` by any other make include file from `make.arch/`, e.g. specify `macos_gfortran` for compiling on MacOS. The executable35 that in the machine-specific make include file `linux_gfortran_openmpi.h` `-DUSE_PDAF` is not defined 36 for CPP_DEFS (such that calls to PDAF are not active). You can replace `linux_gfortran_openmpi` by any other make include file from `make.arch/`, e.g. specify `macos_gfortran` for compiling on MacOS. The executable 37 37 is generated in this directory. 38 38 … … 50 50 {{{ 51 51 cd tools 52 make all PDAF_ARCH=linux_gfortran 52 make all PDAF_ARCH=linux_gfortran_openmpi 53 53 }}} 54 54 … … 73 73 cd ../../../make.arch 74 74 }}} 75 and change in the file `linux_gfortran .h` the line75 and change in the file `linux_gfortran_openmpi.h` the line 76 76 {{{ 77 77 CPP_DEFS = #-DUSE_PDAF … … 87 87 {{{ 88 88 cd ../models/lorenz96 89 make clean PDAF_ARCH=linux_gfortran 89 make clean PDAF_ARCH=linux_gfortran_openmpi 90 90 }}} 91 91 (This removes object files that were compiled without support for PDAF) 92 92 Then build the executable using 93 93 {{{ 94 make pdaf_lorenz_96 PDAF_ARCH=linux_gfortran 94 make pdaf_lorenz_96 PDAF_ARCH=linux_gfortran_openmpi 95 95 }}} 96 96 The program `pdaf_lorenz_96` is generated.