Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TAPIOCA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Francois Tessier
TAPIOCA
Commits
bdaaa67b
Commit
bdaaa67b
authored
Jun 27, 2017
by
Francois Tessier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix on fortran code
parent
007a94c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
examples/Fortran/simple_array.f90
examples/Fortran/simple_array.f90
+7
-7
No files found.
examples/Fortran/simple_array.f90
View file @
bdaaa67b
...
...
@@ -2,30 +2,30 @@
PROGRAM
main
use
mpi
integer
ierr
,
i
,
myrank
,
BUFSIZE
,
filehandle
character
(
*
),
parameter
::
filepath
=
"/projects/visualization/ftessier/debug/"
integer
ierr
,
i
,
myrank
,
mysize
,
BUFSIZE
,
filehandle
parameter
(
BUFSIZE
=
100
)
integer
buf
(
BUFSIZE
)
integer
(
kind
=
MPI_OFFSET_KIND
)
disp
call
MPI_INIT
(
ierr
)
call
MPI_COMM_RANK
(
MPI_COMM_WORLD
,
myrank
,
ierr
)
call
MPI_COMM_SIZE
(
MPI_COMM_WORLD
,
mysize
,
ierr
)
call
MPI_BARRIER
(
MPI_COMM_WORLD
,
ierr
)
do
i
=
0
,
BUFSIZE
buf
(
i
)
=
myrank
*
BUFSIZE
+
i
enddo
! filepath//"f90_HACC.dat"
call
MPI_FILE_OPEN
(
MPI_COMM_WORLD
,
"f90HACC"
,
&
call
MPI_FILE_OPEN
(
MPI_COMM_WORLD
,
'/projects/visualization/ftessier/debug/f90_HACC.dat'
,
&
MPI_MODE_WRONLY
+
MPI_MODE_CREATE
,
&
MPI_INFO_NULL
,
filehandle
,
ierr
)
disp
=
myrank
*
BUFSIZE
*
4
call
MPI_FILE_WRITE_AT
(
filehandle
,
disp
,
buf
,
BUFSIZE
,
MPI_INTEGER
,
&
call
MPI_FILE_WRITE_AT
_ALL
(
filehandle
,
disp
,
buf
,
BUFSIZE
,
MPI_INTEGER
,
&
MPI_STATUS_IGNORE
,
ierr
)
call
MPI_BARRIER
(
MPI_COMM_WORLD
,
ierr
)
call
MPI_FILE_CLOSE
(
filehandle
,
ierr
)
call
MPI_FINALIZE
(
ierr
)
...
...
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