Adding a new routine to be called from several schemes #827
lisa-bengtsson
started this conversation in
Add or modify a scheme
Replies: 2 comments
-
Hi Lisa, Good question. I think that I can help. The mfpbltq.f example that you gave is a good example of a dependency file used by one scheme only. Another good example for the situation that you described is the use of subroutines in the tridi module used by several different PBL schemes. It is perfectly fine to create a new file with code/subroutines (in a module please) and refer to that code in many schemes. To answer your specific questions:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much @grantfirl ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I wonder if anyone can help me out. I am looking to add a new routine that computes a prognostic convective area fraction. Up to this point I have kept the code for this inside of the routine samfdeefcnv.f (in my branch), but since I would like to use it also for shallow convection, and the code segment is some ~150 lines, I though it would be best to move it out to its own subroutine that could be called from both samfdeepcnv.f and samfshalcnv.f (and potentially later on any other cumulus scheme).
I have three questions;
Does a .meta file have to be generated? I e.g don't see one for mfpbltq.f
is there a makefile (or similar) where this new routine needs to be added?
Thank you in advance,
Lisa
Beta Was this translation helpful? Give feedback.
All reactions