Skip to content
Snippets Groups Projects
Commit bb84d218 authored by Dethinne Thomas's avatar Dethinne Thomas
Browse files

I had a problem with leap year is caraib yyyy was read instead of MAR yyyy

parent b3fbe173
No related tags found
No related merge requests found
......@@ -124,12 +124,12 @@ c calendar, otherwise myear can be set to any integer value
c nd = number of days in the current year
if (ileap.eq.1) then
r100 = mod(myear,100)
r100 = mod(previous_year,100)
if (r100.eq.0) then
icentury = myear/100
icentury = previous_year/100
r4 = mod(icentury,4)
else
r4 = mod(myear,4)
r4 = mod(previous_year,4)
endif
if (r4.eq.0) then
nd = 366
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment