Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLMS
loadbalancing
Commits
166b7c6a
Commit
166b7c6a
authored
Nov 26, 2020
by
Stephan Schulz
Browse files
Options
Downloads
Patches
Plain Diff
-DCM_ALL_FORTRAN_ERROR_ABORT to directly abort on any errors (
#25
)
parent
951c95b9
Branches
Branches containing commit
No related tags found
1 merge request
!8
Refactor
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+6
-0
6 additions, 0 deletions
CMakeLists.txt
README_new.md
+4
-0
4 additions, 0 deletions
README_new.md
src/ALL_fortran.cpp
+5
-0
5 additions, 0 deletions
src/ALL_fortran.cpp
with
15 additions
and
0 deletions
CMakeLists.txt
+
6
−
0
View file @
166b7c6a
...
@@ -5,6 +5,8 @@ option(CM_ALL_VORONOI "Voronoi-based loadbalancing scheme (requires Voro++)" OFF
...
@@ -5,6 +5,8 @@ option(CM_ALL_VORONOI "Voronoi-based loadbalancing scheme (requires Voro++)" OFF
option
(
CM_ALL_FORTRAN
"VTK output routine"
OFF
)
option
(
CM_ALL_FORTRAN
"VTK output routine"
OFF
)
option
(
CM_ALL_DEBUG
"Enable debug information"
OFF
)
option
(
CM_ALL_DEBUG
"Enable debug information"
OFF
)
option
(
CM_ALL_USE_F08
"Use some Fortran 2008 features (mpi_f08)"
OFF
)
option
(
CM_ALL_USE_F08
"Use some Fortran 2008 features (mpi_f08)"
OFF
)
option
(
CM_ALL_FORTRAN_ERROR_ABORT
"Abort on any error when using the
Fortran interface"
OFF
)
option
(
CM_ALL_TESTS
"Enables test suite"
OFF
)
option
(
CM_ALL_TESTS
"Enables test suite"
OFF
)
option
(
CM_ALL_AUTO_DOC
"Enables creation of auto-documentation"
)
option
(
CM_ALL_AUTO_DOC
"Enables creation of auto-documentation"
)
...
@@ -65,6 +67,10 @@ if (CM_ALL_DEBUG)
...
@@ -65,6 +67,10 @@ if (CM_ALL_DEBUG)
add_compile_options
(
"-DALL_DEBUG_ENABLED"
)
add_compile_options
(
"-DALL_DEBUG_ENABLED"
)
endif
(
CM_ALL_DEBUG
)
endif
(
CM_ALL_DEBUG
)
if
(
CM_ALL_FORTRAN_ERROR_ABORT
)
add_compile_options
(
"-DALL_FORTRAN_ERROR_ABORT"
)
endif
()
if
(
CM_ALL_USE_F08 AND MPI_Fortran_HAVE_F08_MODULE
)
if
(
CM_ALL_USE_F08 AND MPI_Fortran_HAVE_F08_MODULE
)
add_compile_options
(
"-DALL_USE_F08"
)
add_compile_options
(
"-DALL_USE_F08"
)
elseif
(
CM_ALL_USE_F08 AND NOT MPI_Fortran_HAVE_F08_MODULE
)
elseif
(
CM_ALL_USE_F08 AND NOT MPI_Fortran_HAVE_F08_MODULE
)
...
...
This diff is collapsed.
Click to expand it.
README_new.md
+
4
−
0
View file @
166b7c6a
...
@@ -96,6 +96,10 @@ Optional requirements:
...
@@ -96,6 +96,10 @@ Optional requirements:
-
`-DCM_ALL_USE_F08=ON`
(default:
`OFF`
): Enable usage of
`mpi_f08`
-
`-DCM_ALL_USE_F08=ON`
(default:
`OFF`
): Enable usage of
`mpi_f08`
module for MPI. Requires Fortran 2008 capable compiler and
module for MPI. Requires Fortran 2008 capable compiler and
compatible MPI installation.
compatible MPI installation.
-
`-DCM_ALL_FORTRAN_ERROR_ABORT=ON`
(default:
`OFF): Abort
execution on any error when using the Fortran interface instead
of setting the error number and leaving error handling to the
user.
- `
-DCM_ALL_VORONOI=ON
` (default: `
OFF
`): Enable Voronoi mesh
- `
-DCM_ALL_VORONOI=ON
` (default: `
OFF
`): Enable Voronoi mesh
method and subsequently compilation and linkage of Voro++.
method and subsequently compilation and linkage of Voro++.
- `
-DCM_ALL_TESTING=ON
` (default: `
OFF
`): Turns on unit and feature
- `
-DCM_ALL_TESTING=ON
` (default: `
OFF
`): Turns on unit and feature
...
...
This diff is collapsed.
Click to expand it.
src/ALL_fortran.cpp
+
5
−
0
View file @
166b7c6a
...
@@ -41,11 +41,16 @@ static const char* ALL_errdesc;
...
@@ -41,11 +41,16 @@ static const char* ALL_errdesc;
typedef
ALL
::
ALL
<
double
,
double
>
ALL_t
;
typedef
ALL
::
ALL
<
double
,
double
>
ALL_t
;
#ifdef ALL_FORTRAN_ERROR_ABORT
#define ALL_try
#define ALL_catch
#else
#define ALL_try try {
#define ALL_try try {
#define ALL_catch } catch (ALL::CustomException &e) { \
#define ALL_catch } catch (ALL::CustomException &e) { \
ALL_errno = e.get_error_id(); \
ALL_errno = e.get_error_id(); \
ALL_errdesc = e.what(); \
ALL_errdesc = e.what(); \
}
}
#endif
/*
/*
This interface is unstable and subject to change! It is only used for the
This interface is unstable and subject to change! It is only used for the
...
...
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