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
fc600a98
Commit
fc600a98
authored
7 years ago
by
Jan Frederik Engels
Browse files
Options
Downloads
Patches
Plain Diff
Enable double * time_delta, not only time_delta * double.
parent
c8533eac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libmtime.f90
+9
-0
9 additions, 0 deletions
src/libmtime.f90
with
9 additions
and
0 deletions
src/libmtime.f90
+
9
−
0
View file @
fc600a98
...
...
@@ -1460,6 +1460,7 @@ module mtime_timedelta
module
procedure
elementwiseScalarMultiplyTimeDelta_long
module
procedure
elementwiseScalarMultiplyTimeDeltaInv_long
module
procedure
elementwiseScalarMultiplyTimeDelta_real
module
procedure
elementwiseScalarMultiplyTimeDeltaInv_real
end
interface
operator
(
*
)
!
interface
operator
(
>
)
...
...
@@ -2063,6 +2064,14 @@ contains
dummy_ptr
=
my_elementwisescalarmultiplytimedeltadp
(
c_loc
(
base_td
),
lambda
,
c_loc
(
scaled_td
))
end
function
elementwisescalarmultiplytimedelta_real
!
function
elementwisescalarmultiplytimedeltaInv_real
(
lambda
,
base_td
)
result
(
scaled_td
)
!OK-TESTED.
type
(
timedelta
),
target
::
scaled_td
real
(
c_double
),
intent
(
in
)
::
lambda
type
(
timedelta
),
target
,
intent
(
in
)
::
base_td
type
(
c_ptr
)
::
dummy_ptr
dummy_ptr
=
my_elementwisescalarmultiplytimedeltadp
(
c_loc
(
base_td
),
lambda
,
c_loc
(
scaled_td
))
end
function
elementwisescalarmultiplytimedeltaInv_real
!
function
elementwiseAddTimeDeltatoTimeDelta
(
td1
,
td2
)
result
(
added_td
)
!OK-TESTED.
type
(
timedelta
),
target
::
added_td
type
(
timedelta
),
target
,
intent
(
in
)
::
td1
,
td2
...
...
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