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
0964baab
Commit
0964baab
authored
5 years ago
by
Florian Prill
Committed by
Luis Kornblueh
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
replaced div routine in hl interface.
parent
e254c1fc
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_hl.f90
+1
-1
1 addition, 1 deletion
src/libmtime_hl.f90
src/mtime_t_timedelta.inc
+5
-13
5 additions, 13 deletions
src/mtime_t_timedelta.inc
with
6 additions
and
14 deletions
src/libmtime_hl.f90
+
1
−
1
View file @
0964baab
...
@@ -194,7 +194,7 @@ MODULE mtime_hl
...
@@ -194,7 +194,7 @@ MODULE mtime_hl
! thrown.
! thrown.
PROCEDURE
::
toMilliSeconds
=>
t_timedelta_toMilliSeconds
PROCEDURE
::
toMilliSeconds
=>
t_timedelta_toMilliSeconds
PROCEDURE
::
divide
InSecondsBy
=>
t_timedelta_divide
InSeconds
By
PROCEDURE
::
divide
By
=>
t_timedelta_divideBy
! --- overloaded operators
! --- overloaded operators
...
...
This diff is collapsed.
Click to expand it.
src/mtime_t_timedelta.inc
+
5
−
13
View file @
0964baab
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
CALL
my_deallocatetimedelta
(
c_pointer
)
!
deallocate
timedelta
CALL
my_deallocatetimedelta
(
c_pointer
)
!
deallocate
timedelta
END
FUNCTION
t_timedelta_toString
END
FUNCTION
t_timedelta_toString
FUNCTION
t_timedelta_divide
InSeconds
By
(
this
,
divisor
,
referenceDateTime
)
RESULT
(
quotient
)
FUNCTION
t_timedelta_divideBy
(
this
,
divisor
,
referenceDateTime
)
RESULT
(
quotient
)
CLASS
(
t_timedelta
),
INTENT
(
in
),
target
::
this
CLASS
(
t_timedelta
),
INTENT
(
in
),
target
::
this
TYPE
(
t_timedelta
),
INTENT
(
in
),
target
::
divisor
TYPE
(
t_timedelta
),
INTENT
(
in
),
target
::
divisor
TYPE
(
t_datetime
),
INTENT
(
IN
),
target
::
referenceDateTime
TYPE
(
t_datetime
),
INTENT
(
IN
),
target
::
referenceDateTime
...
@@ -225,20 +225,12 @@
...
@@ -225,20 +225,12 @@
TYPE
(
t_datetime
),
target
::
dt_tmp
TYPE
(
t_datetime
),
target
::
dt_tmp
type
(
c_ptr
)
::
dummy_ptr
type
(
c_ptr
)
::
dummy_ptr
dummy_ptr
=
my_divideTimeDelta
InSeconds
(
c_loc
(
this
%
td
),
c_loc
(
divisor
%
td
),
&
dummy_ptr
=
my_divideTimeDelta
(
c_loc
(
this
%
td
),
c_loc
(
divisor
%
td
),
&
&
c_loc
(
referenceDateTime
%
dt
),
c_loc
(
quotient
))
&
c_loc
(
referenceDateTime
%
dt
),
c_loc
(
quotient
))
IF
(
.
NOT
.
c_associated
(
dummy_ptr
))
THEN
CALL
handle_errno
(
.
not
.
c_associated
(
dummy_ptr
),
general_arithmetic_error
,
&
dt_tmp
=
referenceDateTime
+
this
__FILE__
,
__LINE__
)
dummy_ptr
=
my_dividedatetimedifferenceinseconds
(
c_loc
(
dt_tmp
%
dt
),
&
END
FUNCTION
t_timedelta_divideBy
&
c_loc
(
referenceDateTime
%
dt
),
&
&
c_loc
(
divisor
%
td
),
c_loc
(
quotient
))
CALL
handle_errno
(
.
not
.
c_associated
(
dummy_ptr
),
general_arithmetic_error
,
&
__FILE__
,
&
__LINE__
)
END
IF
END
FUNCTION
t_timedelta_divideInSecondsBy
FUNCTION
t_timedelta_toSeconds
(
this
,
td
)
RESULT
(
seconds
)
FUNCTION
t_timedelta_toSeconds
(
this
,
td
)
RESULT
(
seconds
)
CLASS
(
t_timedelta
),
INTENT
(
in
)
::
this
CLASS
(
t_timedelta
),
INTENT
(
in
)
::
this
...
...
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