FPE with PGI compiler in FRZLVL.f

Questions relating to the use of the WRF Post Processor V3

FPE with PGI compiler in FRZLVL.f

Postby graziano » Fri Dec 18, 2009 7:56 am

This is mostly a report for future record.

I have the model in the ARW incarnation running on two machine, one with intel compiler, the other with portland one. On post processing of results using WPPV3, on the same input, I have a FP exception on the one using PGI compilers in FRZLVL.f at line 177.

I have changed this line as follows, and I do not have the FPE anymore.

Was:

177: RHZ = QFRZ/QSFRZ

Is:

177: IF (QSFRZ < 10e-30) THEN
178: RHZ = 1.0
179: ELSE
180: RHZ = QFRZ/QSFRZ
181: RHZ = AMAX1(0.01,RHZ)
182: RHZ = AMIN1(RHZ,1.0)
183: END IF

Ciao!
graziano
 
Posts: 10
Joined: Thu Apr 17, 2008 11:24 am

Return to WRF Post Processor V3

Who is online

Users browsing this forum: No registered users and 1 guest