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

Bug in gen_domain -p option

It seems there is a bug in the way gen_domain handle the -p command line option.
To convert the command line supplied value (1 character) to the integer variable set_fv_pole_yc the following fortran statement is used:

set_fv_pole_yc = ichar(trim(arg))

but ICHAR actually return the position of the character in the processor collating sequence, so for example using the ASCII collating sequence, the character '2' is converted to the integer 50 . This means that the pole fix is never applied when required by the user.

The correct way of converting a character to an integer should be:

read(arg,'(I1)') set_fv_pole_yc

diff file in attachment.
 
Top