Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
elpa
elpa
Commits
22528c67
Commit
22528c67
authored
Mar 19, 2018
by
Pavel Kus
Browse files
construction of analytic matrix should be faster
parent
687e0412
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/shared/test_analytic_template.F90
View file @
22528c67
...
...
@@ -50,7 +50,7 @@
integer
(
kind
=
ik
),
intent
(
in
)
::
na
,
nblk
,
myid
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
MATH_DATATYPE
(
kind
=
REAL_DATATYPE
),
intent
(
inout
)
::
a
(:,:)
integer
(
kind
=
ik
)
::
globI
,
globJ
,
locI
,
locJ
,
levels
(
num_primes
)
integer
(
kind
=
ik
)
::
globI
,
globJ
,
locI
,
locJ
,
pi
,
pj
,
levels
(
num_primes
)
type
(
timer_t
)
::
timer
...
...
@@ -73,7 +73,15 @@
call
timer
%
start
(
"loop"
)
do
globI
=
1
,
na
pi
=
prow
(
globI
,
nblk
,
np_rows
)
if
(
my_prow
.ne.
pi
)
cycle
do
globJ
=
1
,
na
pj
=
pcol
(
globJ
,
nblk
,
np_cols
)
if
(
my_pcol
.ne.
pj
)
cycle
if
(
map_global_array_index_to_local_index
(
globI
,
globJ
,
locI
,
locJ
,
&
nblk
,
np_rows
,
np_cols
,
my_prow
,
my_pcol
))
then
call
timer
%
start
(
"evaluation"
)
...
...
@@ -83,6 +91,8 @@
&
PRECISION
&
&(
na
,
globI
,
globJ
)
call
timer
%
stop
(
"evaluation"
)
else
print
*
,
"Warning ... error in preparation loop of the analytic test"
end
if
end
do
end
do
...
...
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