Using CROCO with FABM - work involved? #42
-
Hi there, I'd like to know what level of work required to get FABM to handle CROCO for hydrodynamics? It is an offshoot of ROMS ("French ROMS" and an evolution of "ROMS-AGRIF") and I expect it would be analogous to set up but would like to make a firm enquiry and do what is possible to make it happen. All the best, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi Joe Jorn - who is best suited for answering this - is on vacation for yet some time so I'll provide a correct but not very elaborate answer. As there already is a coupling with ROMS and if CROCO does not deviate to much it is all possible. In principle the coupling is rather simple and the hydrodynamic model takes care of the most difficult parts. The wiki has quite extensive documentation on the steps to couple to 1D and 3D models. One issue with the ROMS coupling is that ROMS requires the number of bio-geochemical state variables to be known at compile time - which is against the philosophy of FABM where everything is configurable at run time. To overcome I think they use a small utility that parses the fabm.yaml file and reports the size needed for compilation. So in short - the CROCO build system must be modified to link to the FABM libraries and a coupling source code file must be created with the necessary FABM calls to initialize, update and finalize and these calls must be integrated in CROCO. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @jvmcgovern, That sounds great! Happy to hear what you're planning and to think along. I'll follow up via email. Best, Jorn |
Beta Was this translation helpful? Give feedback.
-
Hello The times given by Jorn works well for me as well. Karsten |
Beta Was this translation helpful? Give feedback.
Hi Joe
Jorn - who is best suited for answering this - is on vacation for yet some time so I'll provide a correct but not very elaborate answer.
As there already is a coupling with ROMS and if CROCO does not deviate to much it is all possible. In principle the coupling is rather simple and the hydrodynamic model takes care of the most difficult parts. The wiki has quite extensive documentation on the steps to couple to 1D and 3D models. One issue with the ROMS coupling is that ROMS requires the number of bio-geochemical state variables to be known at compile time - which is against the philosophy of FABM where everything is configurable at run time. To overcome I think they use a small uti…