Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Terekhov
INMOST
Commits
2dce79a5
Commit
2dce79a5
authored
Mar 26, 2019
by
Kirill Terekhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
1ea6d4be
Pipeline
#221
failed with stages
in 10 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Examples/GridTools/twist_grid.cpp
Examples/GridTools/twist_grid.cpp
+1
-1
Source/IO/mesh_ecl_file.cpp
Source/IO/mesh_ecl_file.cpp
+5
-1
No files found.
Examples/GridTools/twist_grid.cpp
View file @
2dce79a5
...
...
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
if
(
argc
>
2
)
nz
=
atoi
(
argv
[
2
])
+
1
;
int
np
=
10
;
int
np
=
2
;
double
w
=
0.5
/
(
double
)(
np
+
1
);
mesh
=
new
Mesh
();
...
...
Source/IO/mesh_ecl_file.cpp
View file @
2dce79a5
...
...
@@ -1201,6 +1201,7 @@ namespace INMOST
void
Mesh
::
LoadECL
(
std
::
string
File
)
{
bool
parallel_read
=
true
;
char
have_perm
=
0
;
std
::
cout
<<
std
::
scientific
;
int
perform_splitting
=
0
;
...
...
@@ -2943,7 +2944,10 @@ namespace INMOST
//std::cout << "x: " << beg_dims[0] << " " << end_dims[0] << std::endl;
//std::cout << "y: " << beg_dims[1] << " " << end_dims[1] << std::endl;
int
mpi_dims
[
2
]
=
{
0
,
0
};
MPI_Dims_create
(
GetProcessorsNumber
(),
2
,
mpi_dims
);
if
(
parallel_read
)
MPI_Dims_create
(
GetProcessorsNumber
(),
2
,
mpi_dims
);
else
mpi_dims
[
0
]
=
mpi_dims
[
1
]
=
1
;
//std::cout << "mpi: " << mpi_dims[0] << " " << mpi_dims[1] << std::endl;
int
rank
=
GetProcessorRank
();
//my position on the grid
...
...
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