Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
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
Show more breadcrumbs
SWIFT
SWIFTsim
Merge requests
!785
Crash gracefully on start-up if the user compiled with cooling but forgot the runtime flag.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Crash gracefully on start-up if the user compiled with cooling but forgot the runtime flag.
cooling_runtime_flag
into
master
Overview
1
Commits
3
Changes
1
Merged
Matthieu Schaller
requested to merge
cooling_runtime_flag
into
master
6 years ago
Overview
1
Commits
3
Changes
1
Expand
Fixes
#571 (closed)
0
0
Merge request reports
Compare
master
version 2
d48403d3
6 years ago
version 1
9a43bec3
6 years ago
master (base)
and
latest version
latest version
121b6ad9
3 commits,
6 years ago
version 2
d48403d3
2 commits,
6 years ago
version 1
9a43bec3
1 commit,
6 years ago
1 file
+
11
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
examples/main.c
+
11
−
4
Options
@@ -742,12 +742,19 @@ int main(int argc, char *argv[]) {
if
(
myrank
==
0
)
potential_print
(
&
potential
);
/* Initialise the cooling function properties */
bzero
(
&
cooling_func
,
sizeof
(
struct
cooling_function_data
));
if
(
with_cooling
||
with_temperature
)
{
#ifdef COOLING_NONE
if
(
with_cooling
)
error
(
"ERROR: Running with cooling but compiled without it."
);
if
(
with_cooling
||
with_temperature
)
{
error
(
"ERROR: Running with cooling / temperature calculation"
" but compiled without it."
);
}
#else
if
(
!
with_cooling
&&
!
with_temperature
)
{
error
(
"ERROR: Compiled with cooling but running without it. "
"Did you forget the --cooling or --temperature flags?"
);
}
#endif
bzero
(
&
cooling_func
,
sizeof
(
struct
cooling_function_data
));
if
(
with_cooling
||
with_temperature
)
{
cooling_init
(
params
,
&
us
,
&
prog_const
,
&
cooling_func
);
}
if
(
myrank
==
0
)
cooling_print
(
&
cooling_func
);
Loading