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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
09e54f42
Commit
09e54f42
authored
Apr 23, 2018
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes
parent
ac2365c9
No related branches found
No related tags found
1 merge request
!499
Improved grackle
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure.ac
+4
-4
4 additions, 4 deletions
configure.ac
examples/parameter_example.yml
+9
-9
9 additions, 9 deletions
examples/parameter_example.yml
src/io_properties.h
+3
-2
3 additions, 2 deletions
src/io_properties.h
src/parser.c
+0
-19
0 additions, 19 deletions
src/parser.c
with
16 additions
and
34 deletions
configure.ac
+
4
−
4
View file @
09e54f42
...
...
@@ -979,19 +979,19 @@ case "$with_cooling" in
;;
grackle)
AC_DEFINE([COOLING_GRACKLE], [1], [Cooling via the grackle library])
AC_DEFINE([COOLING_GRACKLE_MODE], [0], [Grackle chemistry network])
AC_DEFINE([COOLING_GRACKLE_MODE], [0], [Grackle chemistry network
, mode 0
])
;;
grackle1)
AC_DEFINE([COOLING_GRACKLE], [1], [Cooling via the grackle library])
AC_DEFINE([COOLING_GRACKLE_MODE], [1], [Grackle chemistry network])
AC_DEFINE([COOLING_GRACKLE_MODE], [1], [Grackle chemistry network
, mode 1
])
;;
grackle2)
AC_DEFINE([COOLING_GRACKLE], [1], [Cooling via the grackle library])
AC_DEFINE([COOLING_GRACKLE_MODE], [2], [Grackle chemistry network])
AC_DEFINE([COOLING_GRACKLE_MODE], [2], [Grackle chemistry network
, mode 2
])
;;
grackle3)
AC_DEFINE([COOLING_GRACKLE], [1], [Cooling via the grackle library])
AC_DEFINE([COOLING_GRACKLE_MODE], [3], [Grackle chemistry network])
AC_DEFINE([COOLING_GRACKLE_MODE], [3], [Grackle chemistry network
, mode 3
])
;;
EAGLE)
AC_DEFINE([COOLING_EAGLE], [1], [Cooling following the EAGLE model])
...
...
...
...
This diff is collapsed.
Click to expand it.
examples/parameter_example.yml
+
9
−
9
View file @
09e54f42
File changed. Contains only whitespace changes.
Show whitespace changes.
This diff is collapsed.
Click to expand it.
src/io_properties.h
+
3
−
2
View file @
09e54f42
...
...
@@ -19,8 +19,6 @@
#ifndef SWIFT_IO_PROPERTIES_H
#define SWIFT_IO_PROPERTIES_H
#include
<string.h>
/* Config parameters. */
#include
"../config.h"
...
...
@@ -28,6 +26,9 @@
#include
"common_io.h"
#include
"inline.h"
/* Standard includes. */
#include
<string.h>
/**
* @brief The two sorts of data present in the GADGET IC files: compulsory to
* start a run or optional.
...
...
...
...
This diff is collapsed.
Click to expand it.
src/parser.c
+
0
−
19
View file @
09e54f42
...
...
@@ -594,10 +594,6 @@ int parser_get_opt_param_int(const struct swift_params *params,
params
->
data
[
i
].
name
,
params
->
data
[
i
].
value
,
str
);
}
#ifdef SWIFT_DEBUG_CHECKS
message
(
"Found parameter %s and got %i"
,
name
,
retParam
);
#endif
return
retParam
;
}
}
...
...
@@ -629,10 +625,6 @@ char parser_get_opt_param_char(const struct swift_params *params,
params
->
data
[
i
].
name
,
params
->
data
[
i
].
value
,
str
);
}
#ifdef SWIFT_DEBUG_CHECKS
message
(
"Found parameter %s and got %c"
,
name
,
retParam
);
#endif
return
retParam
;
}
}
...
...
@@ -664,10 +656,6 @@ float parser_get_opt_param_float(const struct swift_params *params,
params
->
data
[
i
].
name
,
params
->
data
[
i
].
value
,
str
);
}
#ifdef SWIFT_DEBUG_CHECKS
message
(
"Found parameter %s and got %g"
,
name
,
retParam
);
#endif
return
retParam
;
}
}
...
...
@@ -698,10 +686,6 @@ double parser_get_opt_param_double(const struct swift_params *params,
"characters '%s'."
,
params
->
data
[
i
].
name
,
params
->
data
[
i
].
value
,
str
);
}
#ifdef SWIFT_DEBUG_CHECKS
message
(
"Found parameter %s and got %g"
,
name
,
retParam
);
#endif
return
retParam
;
}
}
...
...
@@ -723,9 +707,6 @@ void parser_get_opt_param_string(const struct swift_params *params,
for
(
int
i
=
0
;
i
<
params
->
paramCount
;
i
++
)
{
if
(
!
strcmp
(
name
,
params
->
data
[
i
].
name
))
{
strcpy
(
retParam
,
params
->
data
[
i
].
value
);
#ifdef SWIFT_DEBUG_CHECKS
message
(
"Found parameter %s and got %s"
,
name
,
retParam
);
#endif
return
;
}
}
...
...
...
...
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
sign in
to comment