Opened 7 years ago

Closed 7 years ago

#1181 closed help (completed)

input variables for modules

Reported by: chollow Owned by: um_support
Component: UM Model Keywords:
Cc: Platform:
UM Version: 7.5



I've successfully created fcm branches that implement constant radiative cooling and constant surface fluxes in vn7.5. I can read my desired values for these constants in from a text file (which means I can change the values without changing the branch code). However, I currently read the values directly from the file within the relevant module at each timestep, which is making the model run somewhat more slowly.

I'd like to read these constants from the files and put them into variables just once at the beginning of the run and then pass these variables to the modules as needed. I can see that it should be easy to include my variables in the "input" list at the top of the modules. However, I'm not sure where to actually read them in (and whether/how I should pass them out so they are available for the modules as needed).

The job I'm thinking of changing at the moment is xixqd, with constant surface fluxes. I originally just wrote actual numbers directly into the modules, but now I've written code that reads the constant values from a text file. However, it has to read these in at every time step. (Note that I haven't committed this branch yet).

The main module on puma with my code changes in it is:


You can see my changes by looking for "CH " including the space.

Let me know if you have advice on this, or someone else who might know,


Change History (1)

comment:1 Changed 7 years ago by ros

  • Resolution set to completed
  • Status changed from new to closed
  • UM Version changed from <select version> to 7.5

Discussions occurred offline.

Note: See TracTickets for help on using tickets.