Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lorenz Huedepohl
ftimings
Commits
1b9bfbb2
Commit
1b9bfbb2
authored
May 05, 2014
by
Lorenz Huedepohl
Browse files
Fix wrong usage of target as pointer that was tolerated by gfortran
parent
ebd48e48
Changes
1
Show whitespace changes
Inline
Side-by-side
ftimings/ftimings_node.F90
View file @
1b9bfbb2
...
...
@@ -265,7 +265,7 @@ module ftimings_node
type
(
node_t
),
pointer
::
node
integer
::
i
type
(
value_t
)
::
cur_value
,
node_value
,
own_value
,
below_threshold_value
,
total_act
type
(
node_t
),
target
::
own_node
,
threshold_node
type
(
node_t
),
pointer
::
own_node
,
threshold_node
real
(
kind
=
rk
)
::
threshold_act
logical
::
is_sorted_act
,
print_own
,
print_threshold
integer
::
unit_act
...
...
@@ -310,6 +310,7 @@ module ftimings_node
! sort them in
if
(
print_own
)
then
! insert an "(own)" node
allocate
(
own_node
)
own_node
%
value
=
own_value
own_node
%
name
=
own
call
insert_into_sorted_list
(
self
%
firstChild
,
own_node
)
...
...
@@ -317,6 +318,7 @@ module ftimings_node
if
(
print_threshold
)
then
! insert a "(below threshold)" node
allocate
(
threshold_node
)
threshold_node
%
value
=
below_threshold_value
threshold_node
%
name
=
below
call
insert_into_sorted_list
(
self
%
firstChild
,
threshold_node
)
...
...
@@ -348,9 +350,11 @@ module ftimings_node
! remove inserted dummy nodes again
if
(
print_own
)
then
call
remove_from_list
(
self
%
firstChild
,
own_node
)
deallocate
(
own_node
)
endif
if
(
print_threshold
)
then
call
remove_from_list
(
self
%
firstChild
,
threshold_node
)
deallocate
(
threshold_node
)
endif
endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment