Missing fabm0d executable #49
-
Dear Jorn and FABM community, I followed the instructions on the FABM wiki for building the 0d host at https://github.com/fabm-model/fabm/wiki/0D-driver The build instructions are:
and should result in a full installation in |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 1 reply
-
Tagging @kaiwirtz3 |
Beta Was this translation helpful? Give feedback.
-
Hi Carsten, I'm not immediately sure what's going on there. We verify that the fabm0d executable is created as part of our automated testing on Linux, and there it currently succeeds. The simplest explanation would be if you ran cmake differently, with Cheers, Jorn |
Beta Was this translation helpful? Give feedback.
-
hi jorn, the command results in the output below, thus lacks any "bin" directory or "fabm0d" executable. [ 7%] Built target fabm_base |
Beta Was this translation helpful? Give feedback.
-
Hi Kai, Can you try Cheers, Jorn |
Beta Was this translation helpful? Give feedback.
-
Hallo Jorn,
Also fehlt die gewünschte Zeile Der Output des ersten CMAKE ist:
|
Beta Was this translation helpful? Give feedback.
-
Hi Carsten, Both those indicate that you ran cmake with |
Beta Was this translation helpful? Give feedback.
-
You're right, that's what we should have done. Only that GOTM compilation fails (with up-to-date sources) when doing that.
but I guess that is another discussion. I guess it should be made clearer in the documentation of the FABM0d host that it is insufficient to do |
Beta Was this translation helpful? Give feedback.
-
hi jorn, carsten and me (on macbooks with Ports installations) share the same problems. cmake ../code/src/drivers/0d -DGOTM_BASE=/Users/wirtz/mossco/code/external/gotm/code CMake Error at CMakeLists.txt:52 (add_executable):
in the most recent gotm pull I have "shortwave_radiation.F90" (without first "_"). after creating a softlink "short_wave_radiation.F90" that points to "shortwave_radiation.F90", the first cmake gets through. [ 94%] Building Fortran object CMakeFiles/fabm0d.dir/fabm0d.F90.o 583 | call register_input_0d(path,column,pdata,variable_name,scale_factor=scale_factor) |
Beta Was this translation helpful? Give feedback.
-
Glad there's progress! Both aspects (the cmake syntax and which GOTM version to use) are mentioned at the wiki page you referred to above, but if you have ideas how this could be made clearer, they would be very welcome. :-) Also, if you found incorrect/outdated instructions elsewhere, let me know. NB to pull in the required stable GOTM, you could do |
Beta Was this translation helpful? Give feedback.
-
Dear @jornbr, thanks a lot for helping us to make it work! Changing the gotm from development to v6.0 stable ( I now have a working My THM for fabm0d
|
Beta Was this translation helpful? Give feedback.
Hi Carsten,
Both those indicate that you ran cmake with
<FABMDIR>
as source dir, rather than<FABMDIR>/src/drivers/0d
. If you usecmake ../src/drivers/0d -DGOTM_BASE=<GOTMDIR>
, you're likely ok.