Floating point lists for NUOPC_CompAttributeGet #291
-
Requirements
Affiliation(s)Lynker in support of NCEP EMC ESMF Versionv8.6.1 IssueHi. In short, I have floating point ALLCOMP attributes in a UFS configure file. Is it possible to add support for list of floating point to NUOPC_CompAttributeGet? I see that
If not, I then need some intermediate conversion string-->double. Some current implementations of this are not robust across compiler options. Alternately, I don't know if there is some way to call something like ESMF_InfoGetAlloc but with a differently formatted UFS configure file... Any guidance/feedback is appreciated. Autotag |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Hi @NickSzapiro-NOAA esmf/src/addon/NUOPC/src/NUOPC_Comp.F90 Line 1324 in edb848d |
Beta Was this translation helpful? Give feedback.
-
Thanks for the solution @danrosen25! I missed the "/NUOPC/Instance/" part for key and got stuck. |
Beta Was this translation helpful? Give feedback.
-
It looks like ESMF_InfoGetAlloc is misunderstanding the attribute type as string rather than number.
Can I set this somehow? I want array of type real(kind=ESMF_KIND_R8) |
Beta Was this translation helpful? Give feedback.
-
@danrosen25 Maybe more fundamentally, may we ask if it would be possible for ESMF/NUOPC code to provide an We would want a slight tweak to restart_fh attribute above, where if second number is -1 then first number is interpreted as a frequency rather than specific forecast hour. This "encoding" is as in FV3 output_fh (NOAA-EMC/fv3atm#345) |
Beta Was this translation helpful? Give feedback.
Hi @NickSzapiro-NOAA
We can add this to our backlog. Do you have a sense of the urgency?
I've created an issue here
In the meantime this can be accomplished in user code using
call ESMF_InfoGet(info, key="/NUOPC/Instance/"//name, values=valueList, rc=rc)
but you'll want to add checks similar to how it's done in NUOPC for getting an integer list.
esmf/src/addon/NUOPC/src/NUOPC_Comp.F90
Line 1324 in edb848d