Skip to content

Commit

Permalink
Fix typo in julday_mod.F which affects simulations spanning centuries.
Browse files Browse the repository at this point in the history
This issue is described in the Github issue:
   #48

The fix is to simply change this line of code:
   X1 = DBLE( YYYY ) / 100.0d0

to:
   X1 = DBLE( YEAR1 ) / 100.0d0

This commit passes a geosfp_4x5_benchmark difference test.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Sep 3, 2019
1 parent 83fc01a commit cf35e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeosUtil/julday_mod.F
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ FUNCTION JULDAY( YYYY, MM, DD ) RESULT( JULIANDAY )
ENDIF

! Compute the "A" term.
X1 = DBLE( YYYY ) / 100.0d0
X1 = DBLE( YEAR1 ) / 100.0d0
A = MINT( X1 )

! The Gregorian calendar begins on 10 October 1582
Expand Down

0 comments on commit cf35e9b

Please sign in to comment.