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
cf0b83ef
Commit
cf0b83ef
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed multi-dt policy. It is now the default. fixdt has to be explicitly switched on.
parent
fc847208
No related branches found
No related tags found
2 merge requests
!136
Master
,
!79
First version of the multiple time-stepping
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/Makefile.am
+2
-2
2 additions, 2 deletions
examples/Makefile.am
src/engine.c
+1
-1
1 addition, 1 deletion
src/engine.c
src/engine.h
+3
-4
3 additions, 4 deletions
src/engine.h
with
6 additions
and
7 deletions
examples/Makefile.am
+
2
−
2
View file @
cf0b83ef
...
...
@@ -45,7 +45,7 @@ endif
# Sources for swift
swift_SOURCES
=
main.c
swift_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"
engine_policy_multistep |
engine_policy_keep
$(
ENGINE_POLICY_SETAFFINITY
)
"
swift_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"engine_policy_keep
$(
ENGINE_POLICY_SETAFFINITY
)
"
swift_LDADD
=
../src/.libs/libswiftsim.a
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
swift_fixdt_SOURCES
=
main.c
...
...
@@ -54,7 +54,7 @@ swift_fixdt_LDADD = ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS) $(HDF5_LIBS)
# Sources for swift_mpi, do we need an affinity policy for MPI?
swift_mpi_SOURCES
=
main.c
swift_mpi_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
$(
MPI_FLAGS
)
-DENGINE_POLICY
=
"
engine_policy_multistep |
engine_policy_keep"
swift_mpi_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
$(
MPI_FLAGS
)
-DENGINE_POLICY
=
"engine_policy_keep"
swift_mpi_LDADD
=
../src/.libs/libswiftsim_mpi.a
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
$(
MPI_LIBS
)
swift_fixdt_mpi_SOURCES
=
main.c
...
...
This diff is collapsed.
Click to expand it.
src/engine.c
+
1
−
1
View file @
cf0b83ef
...
...
@@ -57,7 +57,7 @@
const
char
*
engine_policy_names
[
10
]
=
{
"none"
,
"rand"
,
"steal"
,
"keep"
,
"block"
,
"fix_dt"
,
"multi_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
};
"fix_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
};
/** The rank of the engine as a global variable (for messages). */
int
engine_rank
;
...
...
This diff is collapsed.
Click to expand it.
src/engine.h
+
3
−
4
View file @
cf0b83ef
...
...
@@ -46,10 +46,9 @@ enum engine_policy {
engine_policy_keep
=
4
,
engine_policy_block
=
8
,
engine_policy_fixdt
=
16
,
engine_policy_multistep
=
32
,
engine_policy_cputight
=
64
,
engine_policy_mpi
=
128
,
engine_policy_setaffinity
=
256
engine_policy_cputight
=
32
,
engine_policy_mpi
=
64
,
engine_policy_setaffinity
=
128
};
extern
const
char
*
engine_policy_names
[];
...
...
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