piergiuseppe_fogli@cmcc_it
New Member
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.
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.