-
Notifications
You must be signed in to change notification settings - Fork 112
Quick start
The following data is the minimum necessary to start a simulation with near bare ground, for a single polygon.
- Meteorology data with sub-daily resolution (recommended between 15 min to 6hr)
- Radiation data, with sub-daily resolution (recommended between 15 min to 1hr)
- ED2IN Namelist with the appropriate configuration.
- Land/sea fraction (only land points are solved by ED)
- Soil texture map (homogeneous soil type is an option, but not recommended).
- Tree-level inventory data (minimum: species, DBH)
- Soil Carbon stocks
- Soil texture profile (assumed homogeneous if not provided).
- Leaf phenology data
- Model & PFT parameters
- Land use change data (assumed inexistent if not provided).
From the data above you then need to build:
- Vegetation I.C. Files (*.pss, *.css)
- Meteorology/Radiation B.C. files (hdf5)
- ED2IN settings file
- Soil texture and depth databases (hdf5) OR Site file (*.site, used when running with IRESTYPE = 3.)
- XML parameter file (optional)
- Phenology B.C. (optional)
- Land Use B.C. (optional)
- Fortran compiler (recommended ifort or gfortran)
- C compiler (recommended icc or gcc)
- MPI
- HDF5
- Check out most recent code using git following instructions https://github.com/EDmodel/ED2/wiki/Using-Github-with-ED2
- Make sure that ED_ROOT is properly set at .../ED/build/bin/paths.mk. The default option is
ED_ROOT=../..Alternatively, you can set the full path, like the example below:
ED_ROOT=/home/john.smith/ED2/ED
- Create or edit an include.mk file for your project (e.g. myincludefile.mk.opt). There are a number of examples in the .../ED/build/bin directory for different architectures and compilers. A key set of variables to specify are the HDF5 paths and flags (USE_HDF5, HDF5_INCS, HDF5_LIBS). Once your include file is ready, create a link to include.mk.opt .
> ln -s myincludefile.mk.opt include.mk.opt
Note that if you are using gfortran, you need to change the CMACH compiling flag in include.mk.opt file from CMACH=PC_LINUX1 to CMACH=PC_GFORTRAN.
- From the .../ED/build/bin/ directory type
> ./install.sh
This will create the executable in the .../ED/build directory (usually ed_2.1-opt).
- You can also set multiple working versions. Additional details at https://github.com/EDmodel/ED2/wiki/Using-Github-with-ED2
Single polygon runs must be run in serial mode. To run this, simply copy or link the executable to the same directory where the ED2IN file you modified is located, then type:
> ./ed_2.1-opt
In case your namelist is called anything other than ED2IN, you must provide the correct name using the -f option
> ./ed_2.1-opt -f my-ED2IN
Regional runs can be run using MPI. In this case, you must submit the job with the mpirun command:
> mpirun -np [n] ./ed_2.1-opt
where [n] is the number of processors to use. The -f option also works in parallel simulations.