Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
945f5553
Commit
945f5553
authored
6 years ago
by
Jan Frederik Engels
Committed by
Luis Kornblueh
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix newJulianDelta.
parent
72d220f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libmtime.f90
+3
-2
3 additions, 2 deletions
src/libmtime.f90
src/mtime_c_bindings.f90
+1
-1
1 addition, 1 deletion
src/mtime_c_bindings.f90
with
4 additions
and
3 deletions
src/libmtime.f90
+
3
−
2
View file @
945f5553
...
...
@@ -120,9 +120,10 @@ MODULE mtime_juliandelta
CONTAINS
FUNCTION
newJuliandelta
(
sign
,
day
,
ms
,
errno
)
RESULT
(
ret_juliandelta
)
!OK-TESTED.
FUNCTION
newJuliandelta
(
sign
,
day
,
ms
,
errno
)
RESULT
(
ret_juliandelta
)
TYPE
(
juliandelta
),
POINTER
::
ret_juliandelta
CHARACTER
(
c_char
),
INTENT
(
in
)
::
sign
! I don't fully understand why value is needed here.
CHARACTER
(
kind
=
c_char
),
INTENT
(
in
),
value
::
sign
INTEGER
(
c_int64_t
),
INTENT
(
in
)
::
day
INTEGER
(
c_int64_t
),
INTENT
(
in
)
::
ms
type
(
c_ptr
)
::
c_pointer
...
...
This diff is collapsed.
Click to expand it.
src/mtime_c_bindings.f90
+
1
−
1
View file @
945f5553
...
...
@@ -116,7 +116,7 @@ module mtime_c_bindings
function
my_newjuliandelta
(
sign
,
day
,
ms
)
result
(
c_pointer
)
bind
(
c
,
name
=
'newJulianDelta'
)
import
::
c_int64_t
,
c_char
,
c_ptr
type
(
c_ptr
)
::
c_pointer
character
(
c_char
)
::
sign
character
(
kind
=
c_char
)
,
value
::
sign
integer
(
c_int64_t
),
value
::
day
integer
(
c_int64_t
),
value
::
ms
end
function
my_newjuliandelta
...
...
This diff is collapsed.
Click to expand it.
Florian Prill
@m300196
mentioned in commit
f382c6a3
·
4 years ago
mentioned in commit
f382c6a3
mentioned in commit f382c6a3b4f4316926cf9081f062aeb868ade3a4
Toggle commit list
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