My macports refused to install openmpi with the gcc5 compiler, i.e.
port install openmpi-gcc5
complained
"Invalid value for configure.compiler: macports-gcc-5"
Looking at /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl it is evident that the regex for deterimining the compiler is expecting a version as version.subversion and not just a plain major version. The fix is then to duplicate the gccX.Y sections in portconfigure.tcl and adjust the regexto deal with gccX. ... read more
FABM's external dependencies are communicated in MOSSCO as fields (3d for bulk dependencies, 2d for horizontal dependencies) and are automatically created in the fabm_pelagic component. The dependencies just have to be specified ideally as standard_variable data type in the FABM model:
For 3d/bulk dependencies:
call self%register_dependency(self%id_tke,type_bulk_standard_variable(name='turbulent_kinetic_energy',units='m2/s2... [read more](/p/mossco/tech-blog/2015/10/fabm-dependencies-in-esmf/)
To install the OceanView R package http://www.rforscience.com/rpackages/visualisation/, startup your R and type
install.packages("OceanView")
You will be asked for a mirror to download from and the package will install itself.
Sometimes, the dependencies are not immediately resolved.
Follow http://stackoverflow.com/questions/15292905/how-to-solve-the-error-missing-required-header-gl-gl-h-while-installing-the-p advice and update your libGL libraries, then again try installing OceanView; you can also manually try the dependencies... read more
Issue the following command (provided you have beget)
wget -qO- http://ipecho.net/plain ; echo
There is no logical OR in makefile syntax.
You have to use filter:
ifneq (,$(filter $(A),$(B) $(C)))
The filter will return B and/or C if they match A, and the ifneq empty
string will be true if the filter returns any value.
We do this in Rules.make to check for either MOSSCO_FABM, MOSSCO_GOTM, or MOSSCO_GETM
ESMF_StateGet() can be used to check the existence of items (without raising an ESMF error in case of non-existing items):
type(ESMF_StateItem_Flag) :: itemType
call ESMF_StateGet(state, name, itemType)
if (itemType .eq. ESMF_STATEITEM_NOTFOUND) then
For more details see:
http://www.earthsystemmodeling.org/esmf_releases/public/last/ESMF_refdoc/node4.html#SECTION04077900000000000000
Onur today talked about his first experiences with doxygen
We installed a new blog that serves as a platform for exchanging arbitrary ideas on how to deal with coding issues within and around MOSSCO