Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
e7280379
There was an error fetching the commit references. Please try again later.
Commit
e7280379
authored
6 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
TNL solver crashes with message when runnig (semi-)implicit solver with MPI.
parent
8a2e590e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TNL/Solvers/SolverStarter_impl.h
+14
-0
14 additions, 0 deletions
src/TNL/Solvers/SolverStarter_impl.h
src/Tools/CMakeLists.txt
+5
-4
5 additions, 4 deletions
src/Tools/CMakeLists.txt
tests/mpi/CMakeLists.txt
+12
-12
12 additions, 12 deletions
tests/mpi/CMakeLists.txt
with
31 additions
and
16 deletions
src/TNL/Solvers/SolverStarter_impl.h
+
14
−
0
View file @
e7280379
...
...
@@ -154,9 +154,23 @@ class UserDefinedTimeDiscretisationSetter< Problem, ConfigTag, void >
if
(
timeDiscretisation
==
"explicit"
)
return
SolverStarterTimeDiscretisationSetter
<
Problem
,
ExplicitTimeDiscretisationTag
,
ConfigTag
>::
run
(
problem
,
parameters
);
if
(
timeDiscretisation
==
"semi-implicit"
)
{
if
(
Problem
::
CommunicatorType
::
isDistributed
()
)
{
std
::
cerr
<<
"TNL currently does not support semi-implicit solvers with MPI."
<<
std
::
endl
;
return
false
;
}
return
SolverStarterTimeDiscretisationSetter
<
Problem
,
SemiImplicitTimeDiscretisationTag
,
ConfigTag
>::
run
(
problem
,
parameters
);
}
if
(
timeDiscretisation
==
"implicit"
)
{
if
(
Problem
::
CommunicatorType
::
isDistributed
()
)
{
std
::
cerr
<<
"TNL currently does not support implicit solvers with MPI."
<<
std
::
endl
;
return
false
;
}
return
SolverStarterTimeDiscretisationSetter
<
Problem
,
ImplicitTimeDiscretisationTag
,
ConfigTag
>::
run
(
problem
,
parameters
);
}
std
::
cerr
<<
"Uknown time discretisation: "
<<
timeDiscretisation
<<
"."
<<
std
::
endl
;
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
src/Tools/CMakeLists.txt
+
5
−
4
View file @
e7280379
...
...
@@ -36,9 +36,10 @@ target_link_libraries (tnl-curve2gnuplot tnl )
IF
(
BUILD_CUDA
)
CUDA_ADD_EXECUTABLE
(
tnl-cuda-arch tnl-cuda-arch.cu
)
INSTALL
(
TARGETS tnl-cuda-arch
RUNTIME DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
# TODO: Fix this -- https://cmake.org/pipermail/cmake/2013-September/055755.html
# INSTALL( TARGETS tnl-cuda-arch
# RUNTIME DESTINATION bin
# PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
ENDIF
()
INSTALL
(
TARGETS tnl-init
...
...
@@ -50,7 +51,7 @@ INSTALL( TARGETS tnl-init
tnl-dicom-reader
tnl-image-converter
tnl-curve2gnuplot
DESTINATION bin
)
RUNTIME
DESTINATION bin
)
INSTALL
(
FILES
${
PROJECT_TOOLS_PATH
}
/tnl-bindir
${
PROJECT_TOOLS_PATH
}
/tnl-compile
...
...
This diff is collapsed.
Click to expand it.
tests/mpi/CMakeLists.txt
+
12
−
12
View file @
e7280379
ADD_EXECUTABLE
(
tnl
MeshFunct
t
ionEvaluateTest
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
tnl
MeshFunct
t
ionEvaluateTest
${
CPPUNIT_LIBRARIES
}
ADD_EXECUTABLE
(
MeshFunctionEvaluateTest
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
MeshFunctionEvaluateTest
${
CPPUNIT_LIBRARIES
}
tnl
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTest PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTest PUBLIC
"-DXDISTR -DYDISTR"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTest PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTest PUBLIC
"-DXDISTR -DYDISTR"
)
ADD_EXECUTABLE
(
tnl
MeshFunct
t
ionEvaluateTestX
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
tnl
MeshFunct
t
ionEvaluateTestX
${
CPPUNIT_LIBRARIES
}
ADD_EXECUTABLE
(
MeshFunctionEvaluateTestX
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
MeshFunctionEvaluateTestX
${
CPPUNIT_LIBRARIES
}
tnl
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTestX PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTestX PUBLIC
"-DXDISTR"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTestX PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTestX PUBLIC
"-DXDISTR"
)
ADD_EXECUTABLE
(
tnl
MeshFunct
t
ionEvaluateTestY
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
tnl
MeshFunct
t
ionEvaluateTestY
${
CPPUNIT_LIBRARIES
}
ADD_EXECUTABLE
(
MeshFunctionEvaluateTestY
${
headers
}
MeshFunctionEvauateTest.cpp
)
TARGET_LINK_LIBRARIES
(
MeshFunctionEvaluateTestY
${
CPPUNIT_LIBRARIES
}
tnl
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTestY PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
tnl
MeshFunct
t
ionEvaluateTestY PUBLIC
"-DYDISTR"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTestY PUBLIC
"-DDIMENSION=2"
)
TARGET_COMPILE_DEFINITIONS
(
MeshFunctionEvaluateTestY PUBLIC
"-DYDISTR"
)
ADD_EXECUTABLE
(
mpiio-save-test
${
headers
}
mpiio-save-test.cpp
)
...
...
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