Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flexpart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Püschel
Flexpart
Commits
477a0944
Commit
477a0944
authored
4 years ago
by
pesei
Browse files
Options
Downloads
Patches
Plain Diff
Modified caldate.f90 to avoid output of hhmiss as 240000
(will become 000000 with date addjusted), see ticket:281
parent
34059949
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caldate.f90
+7
-0
7 additions, 0 deletions
src/caldate.f90
with
7 additions
and
0 deletions
src/caldate.f90
+
7
−
0
View file @
477a0944
...
...
@@ -26,6 +26,8 @@ subroutine caldate(juldate,yyyymmdd,hhmiss)
! Constants: *
! igreg help constant *
! *
! PS 2020-07-27: add a check to avoid giving back 240000 for hhmiss *
! *
!*****************************************************************************
use
par_mod
,
only
:
dp
...
...
@@ -38,6 +40,11 @@ subroutine caldate(juldate,yyyymmdd,hhmiss)
integer
,
parameter
::
igreg
=
2299161
julday
=
int
(
juldate
)
! PS check to avoid 240000 as hhmiss:
if
((
xjuldate
-
julday
)
*
86400._dp
.ge.
86399.5_dp
)
then
juldate
=
juldate
+
juldate
-
julday
-86399.5_dp
/
86400._dp
julday
=
int
(
juldate
)
end
if
(
julday
.ge.
igreg
)
then
jalpha
=
int
(((
julday
-1867216
)
-0.25
)/
36524.25
)
ja
=
julday
+1
+
jalpha
-
int
(
0.25
*
jalpha
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment