Linking neural-fortran to WAVEWATCH III #161
-
Hello again, I've been trying to compile the WAVEWATCH III model and call some of the neural-fortran functionalities from WW3, I imagine it should be possible, right? I know this will be very specific to WW3 but I guess it could be helpful for others trying to use neural-fortran in their own code? (like here for example) I use gfortran as the compiler for both. I built neural-fortran with CMake, and I can run the given examples. And I can compile WW3 with gfortran as well. Now in one of the WW3 subroutines in w3wavemd.F90 I add:
And I try to re-compile ww3_shel. I'm using these options:
And I'm getting this error at linking time:
Any help/comment will be greatly appreciated! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry, writing down my problem actually helped me to fix it... Posting here in case it helps anybody: I had to point to the
And that worked. Now I can load a neural network and use it in WW3, I just need to figure out what is the best place for that in the WW3 source code... Thanks again for such a great library :) |
Beta Was this translation helpful? Give feedback.
Sorry, writing down my problem actually helped me to fix it... Posting here in case it helps anybody: I had to point to the
neural-fortran
.f90 files in the WW3 link file. I added this to the link file in /model/bin:And that worked. Now I can load a neural network and use it in WW3, I just need to figure out what is the best place for that in the WW3 source code... Thanks again for such a great library :)