Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
Sten Delos
Gadget4
Commits
01e6b156
Commit
01e6b156
authored
Mar 02, 2021
by
Volker Springel
Browse files
Merge branch 'master' of gitlab.mpcdf.mpg.de:vrs/gadget4
parents
d2ba21e6
e3e352d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
01e6b156
...
...
@@ -243,6 +243,7 @@ SUBDIRS += logs
OBJS
+=
logs/logs.o
INCL
+=
logs/logs.h logs/timer.h
SUBDIRS
+=
gitversion
INCL
+=
gitversion/version.h
...
...
@@ -260,11 +261,6 @@ OBJS += pm/pm_nonperiodic.o pm/pm_periodic.o \
INCL
+=
pm/pm.h pm/pm_mpi_fft.h pm/pm_periodic.h pm/pm_nonperiodic.h
SUBDIRS
+=
vectorclass
OBJS
+=
vectorclass/instrset_detect.o
INCL
+=
SUBDIRS
+=
sort
OBJS
+=
sort
/peano.o
INCL
+=
sort
/peano.h
sort
/cxxsort.h
sort
/parallel_sort.h
...
...
@@ -274,6 +270,7 @@ SUBDIRS += sph
OBJS
+=
sph/density.o sph/hydra.o sph/init_entropy.o sph/artificial_viscosity.o
INCL
+=
sph/kernel.h sph/sph.h
SUBDIRS
+=
system
OBJS
+=
system/pinning.o system/system.o
INCL
+=
system/system.h system/pinning.h
...
...
@@ -308,6 +305,13 @@ OBJS += ngbtree/ngbtree_build.o
INCL
+=
ngbtree/ngbtree.h
ifeq
(EXPLICIT_VECTORIZATION,$(findstring EXPLICIT_VECTORIZATION,$(CONFIGVARS)))
SUBDIRS
+=
vectorclass
OBJS
+=
vectorclass/instrset_detect.o
INCL
+=
endif
ifeq
(COOLING,$(findstring COOLING,$(CONFIGVARS)))
OBJS
+=
cooling_sfr/cooling.o cooling_sfr/sfr_eos.o cooling_sfr/starformation.o
INCL
+=
cooling_sfr/cooling.h
...
...
@@ -362,6 +366,7 @@ ifeq (LIGHTCONE_MASSMAPS,$(findstring LIGHTCONE_MASSMAPS,$(CONFIGVARS)))
MAPS_LIBS
+=
-lchealpix
-lcfitsio
#-lcurl
endif
ifeq
(LIGHTCONE_PARTICLES,$(findstring LIGHTCONE_PARTICLES,$(CONFIGVARS)))
MAPS_LIBS
+=
-lchealpix
-lcfitsio
#-lcurl
endif
...
...
src/logs/timer.h
View file @
01e6b156
...
...
@@ -59,7 +59,6 @@ TIMER_CREATE(CPU_TREEDIRECT, "treedirect", CPU_TREE, 'r', '2')
#ifdef PMGRID
TIMER_CREATE
(
CPU_PM_GRAVITY
,
"pm_grav"
,
CPU_ALL
,
'|'
,
'n'
)
#endif
TIMER_CREATE
(
CPU_NGBTREEBUILD
,
"ngbtreebuild"
,
CPU_ALL
,
'A'
,
'a'
)
TIMER_CREATE
(
CPU_NGBTREEUPDATEVEL
,
"ngbtreevelupdate"
,
CPU_ALL
,
'B'
,
'b'
)
TIMER_CREATE
(
CPU_NGBTREEUPDATEMAXHSML
,
"ngbtreehsmlupdate"
,
CPU_ALL
,
'h'
,
'H'
)
TIMER_CREATE
(
CPU_SPH
,
"sph"
,
CPU_ALL
,
0
,
0
)
...
...
src/main/begrun.cc
View file @
01e6b156
...
...
@@ -318,6 +318,10 @@ void sim::begrun2(void)
All
.
FlushLast
=
Logs
.
CPUThisRun
;
#endif
// update All on shared memory handler, just to allow it to access its elements if needed
if
(
Shmem
.
Island_NTask
!=
Shmem
.
World_NTask
&&
Shmem
.
Island_ThisTask
==
0
)
MPI_Send
(
All
.
get_data_ptr
(),
All
.
get_data_size
(),
MPI_BYTE
,
Shmem
.
MyShmRankInGlobal
,
TAG_ALL_UPDATE
,
MPI_COMM_WORLD
);
#if defined(FORCETEST) && defined(FORCETEST_TESTFORCELAW)
gravity_forcetest_testforcelaw
();
#endif
...
...
src/mpi_utils/mpi_utils.h
View file @
01e6b156
...
...
@@ -97,6 +97,7 @@
#define TAG_NODE_DATA 84
#define TAG_RESULTS 85
#define TAG_DRIFT_INIT 86
#define TAG_ALL_UPDATE 87
#define TAG_METDATA 500
#define TAG_FETCH_GRAVTREE 1000
#define TAG_FETCH_SPH_DENSITY 2000
...
...
src/mpi_utils/shared_mem_handler.cc
View file @
01e6b156
...
...
@@ -200,6 +200,11 @@ void shmem::shared_memory_handler(void)
Mem
.
myfree
(
message
);
Driftfac
.
init_drift_table
();
}
else
if
(
tag
==
TAG_ALL_UPDATE
)
// make the shared memory handler update the contents of the All structure
{
memcpy
(
All
.
get_data_ptr
(),
message
,
All
.
get_data_size
());
Mem
.
myfree
(
message
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment