Determining the Specific PFT Type

Status
Not open for further replies.

LeeJace

Lee
New Member
Dear all,

I was attempting to determine the specific PFT type in a CESM patch. I used the following assertion:
if (patch%itype(p) == pftcon%noveg) then

However, I encountered the error: "A scalar-valued expression is required in this context."

Could you please guide me on how to correctly check a patch's PFT type?

Thanks!
 

slevis

Moderator
Staff member
I searched the src directory for "noveg" and found numerous examples of how this is done, such as in src/biogeochem/CNFireBaseMod.F90 and many others. Following an existing template should work.
 

LeeJace

Lee
New Member
I searched the src directory for "noveg" and found numerous examples of how this is done, such as in src/biogeochem/CNFireBaseMod.F90 and many others. Following an existing template should work.
Thanks for your advice! I followed the existed example then.
 
Status
Not open for further replies.
Back
Top