Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Help on Bringing variables to a different module

kwyang

New member
Hi,

I am working on creating a new set of module to add into a chem directory. Similar to how module_ghg_fluxes.F was incorporated. I am particularly interested in using variables from module_sf_sfclay.F such as FLQC, MAVAIL, and UST. This maybe more of a general Fortran question. When I create my new module, is there a specific declaration that must be done to use the same variables used in a different module? I currently have it so that I declare the allocation again at the top of my module.

To clarify,
I want to use UST,FLQC,MAVAIL which are declared in phys/module_sf_sfclay.F to chem/my_own_module.F.

Thank you for your help.

Best,
Parker
 

Attachments

  • Screenshot 2025-02-24 at 3.02.48 PM.png
    Screenshot 2025-02-24 at 3.02.48 PM.png
    49.1 KB · Views: 0
Top