Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

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.
Top