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
Commits
c8a7383f
Commit
c8a7383f
authored
6 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
aafd5b77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+7
-5
7 additions, 5 deletions
examples/main.c
with
7 additions
and
5 deletions
examples/main.c
+
7
−
5
View file @
c8a7383f
...
...
@@ -741,16 +741,18 @@ int main(int argc, char *argv[]) {
potential_init
(
params
,
&
prog_const
,
&
us
,
&
s
,
&
potential
);
if
(
myrank
==
0
)
potential_print
(
&
potential
);
/* Initialise the cooling function properties */
/* Initialise the cooling function properties */
#ifdef COOLING_NONE
if
(
with_cooling
||
with_temperature
)
{
error
(
"ERROR: Running with cooling / temperature calculation"
" but compiled without it."
);
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?"
);
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
));
...
...
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