Closed alapha23 closed 6 years ago
Hi! Yes, you have built open-SURFEX in the correct way and, if you don't provide any additional options for cmake
, GRIB-API and NetCDF libraries shipped with SURFEX will be used.
There are quite a number of different binaries in the installation directory, but if you're interested in running some basic SURFEX experiments, you would use mainly:
To run SURFEX, one would need to prepare some forcing data (air temperature and specific humidity, surface pressure, direct and diffuse downward short-wave radiation, downward long-wave radiation, rainfall and snowfall amount, wind speed and direction, CO2 concentration) for the area of interest, and configure experiment through OPTIONS.nam namelist file. Quite some work, I'd say. But there is a number of test experiments provided with open-SURFEX that are relatively easy to run and could be used to get an idea on how a SURFEX experiment should be set up.
The problem is, that these experiments are not ready to run, and to configure them you should do the following (please note that each step starts from the open-SURFEX root directory):
First of all, you need to build the forcing generation tool that is not built by default:
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DUSER_SOURCES_DIR=../src/FORC
cmake --build .
cmake --build . --target install
you could re-use your old build to not re-compile the whole thing:
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DUSER_SOURCES_DIR=../src/FORC
cmake --build . --target pre_input_experiment
cmake --build . --target install
Next step is to prepare ECOCLIMAP cover parameters data files:
cd MY_RUN/ECOCLIMAP
gfortran -fdefault-real-8 -fdefault-double-8 -g -fno-second-underscore -fpic -ffpe-trap=overflow,zero,invalid -fbacktrace -fconvert=swap convert_ecoclimap_param.f90
./a.out
And now, you can set up the experiment itself (I just took the Alp_for_0203
experiment as an example, you could try a different test experiment):
# To set up the experiment directory and copy required data files:
#
# Please note that your experiment should be located in MY_RUN
# directory because PRE_INPUT_EXPERIMENT uses relative paths
# to find its input data.
#
cd MY_RUN
cp -rv NAMELIST/Alp_for_0203 .
cd Alp_for_0203
cp -v ../ECOCLIMAP/*.dat .
Hi Joewkr! Thank you so much for those helpful instructions! It is utterly comprehensive and greatly inspiring!
If there is still something I would like to note, it could be that To set up the experiment directory and copy required data files:
, the data files seem not only to be *.dat
, but also *.bin
, which seems to be required when I run <path to SURFEX binaries>/PRE_INPUT_EXPERIMENT
Anyway, problems solved and my SURFEX is running fairly decent on my machine now thanks to your help. I would definitely read through the document from the link, in order that I could do further contributions to this software.
Oops, my bad... of course *.bin
files should be used, because SURFEX can not read ASCII *.dat
parameter files, so they were converted to binary format during the Step 2.
Hi! Thank you for this cmake version of open-SURFEX.
I built using the following commands
While I found a couple of binaries in _install, SODA, SXPOST, VARASSIM, PGD, OI_MAIN, OFFLINE, NCPOST. They all report error opening OPTIONS.nam to me.
In LISTING_SODA0.txt, I also have
What is OPTIONS.nam? Which binary should I use to start? Is my way of building correct? I have not install netCDF nor GRIB-API.
Thank you in advance!