Closed TomMelt closed 5 months ago
I can see that you have the same netcdf_par.h
error on Ubuntu that I had previously. Did you try setting the same include path to the parallel netcdf version?
When I try to run (cd xios && ./make_xios --arch GCC_LINUX --netcdf_lib netcdf4_seq)
to install xios I am getting
/home/workspace/nextsimdg_xios/xios/extern/remap/src/earcut.hpp:26:29: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
26 | template <typename N = std::uint32_t>
| ^~~~~~~~
| wint_t
fcm_internal compile failed (256)
gmake: *** [/home/workspace/nextsimdg_xios/xios/Makefile:756: meshutil.o] Error 1
gmake -f /home/workspace/nextsimdg_xios/xios/Makefile -j 1 all failed (2) at /home/workspace/nextsimdg_xios/xios/tools/FCM_OLD/bin/../lib/Fcm/Build.pm line 597.
I can see that you have the same
netcdf_par.h
error on Ubuntu that I had previously. Did you try setting the same include path to the parallel netcdf version?
Yeah but I figured there's no point fixing it if we move to a Docker
container anyway. That's why I have left it for now. It will get worse when we add XIOS
dependencies. So my plan is, get the docker build working first and then we can just build Nextsim
with the dev environment configured already
Nextsim XIOS Interface
The previous XIOS work has diverged from the current development branch.
This PR has a minimum working example (MWE) in the form of a test
testXiosInit
(source./core/test/XiosInit_test.cpp
).The test checks most of the functionality added by the XIOS C++ interface
./core/src/Xios.cpp
./core/src/include/Xios.hpp
which depend on a C interface included here:
./core/src/include/xios_c_interface.hpp
The core functionality of XIOS is included as part of this PR as the other two components will require it.
XIOS functionality
Still to discuss:
lxios
,lpnetcdf
etc.This PR does the following:
XIOS
tocmake
XIOS
to the CI workflowdoctest
I think this can be merged in relatively soon. The remaining steps are (for a future PR):
testXiosInit
is a stand-alone binary)XIOS
datetime types withnextsim
'sSteps required to run
testXiosInit
XIOS
(see the github workflow for an idea how to installXIOS
)nextsim
withXIOS
support using-DENABLE_XIOS=ON
and-Dxios_DIR=/path/to/xios/install
cd
tobuild/core/test
and runmpirun -n 2 ./testXiosInit
The test should pass all tests:
And produce the following output:
I don't currently verify the output of
diagnostic.nc
as part oftestXiosInit
but this can be added.This PR is to update the state of XIOS related PRs and Issues. This will close some stale issues closes #218 closes #291 closes #293