Registry.EM question

Ideas, problems or suggestions regarding the WRF software.

Registry.EM question

Postby christophe » Fri Dec 21, 2012 2:30 pm

Hello,

I seek to add in the ARW core some values like
lon_ll_u
lat_ll_u
lon_ur_u
lon_ur_v

I change the Registry.EM with this parameters:
Example for lon_ll_u and lat_ll_v

state real lon_ll_u - dyn_em - - irh "lon_ll_u" "longitude lower left, u point" "degrees"
state real lat_ll_v - dyn_em - - irh "lat_ll_v" "latitude lower left, v point" "degrees"

Then I recompile the model and now this value are present in native model but value are 0:
LAT_LL_U = 0, 0, 0, 0 ;

I don't know if I must change another program in the model .

Thank you
christophe
 
Posts: 4
Joined: Tue Mar 03, 2009 9:46 am

Re: Registry.EM question

Postby AchternDiek » Wed Jan 02, 2013 4:20 am

Hi christophe,

I am not sure if I understand you correctly.

You successfully added new variables to the registry.
Now you have to write some code to assign values to those new variables.
Right?

--AchternDiek
AchternDiek
 
Posts: 147
Joined: Wed Jun 06, 2012 6:10 am
Location: Norway

Re: Registry.EM question

Postby jan » Fri Jan 04, 2013 5:26 am

Somewhere in your code, you have to specify what value your variable should have. You probably want to derive lon_ll_u from XLONG_U.
Code: Select all
 state    real   lon_ll_u    -   dyn_em   1    -    h    "lon_ll_u"  "longitude lower left, u point"    "degrees"

or:
Code: Select all
 state    real   lon_ll_u    -   dyn_em   1    X    h    "lon_ll_u"  "longitude lower left, u point"    "degrees"

Since variable_u is staggered ("X"). To write out this variable in standard history stream should be sufficient, there is no need to write to e.g. restart files.
If you do not assign a value to your variable inside the code, it will be zero everywhere. The best way to add variables in your code, is to copy the code lines from a very similar variable and edit it (search with "grep" to find all lines in all modules).
jan
 
Posts: 174
Joined: Wed Jun 15, 2011 3:48 am
Location: Kiel, Germany, GEOMAR


Return to Software Engineering

Who is online

Users browsing this forum: No registered users and 1 guest