Skip to content

Commit ef07a2f

Browse files
committed
Merge branch 'gitlab-updates' into iss9-arepo_dark_matter_interface
Three of four recent commits from [arepo on gitlab](https://gitlab.mpcdf.mpg.de/vrs/arepo). Documentation update omitted since arepo documentation has been removed here.
2 parents 285b495 + 0193040 commit ef07a2f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/amuse/community/arepo/src/cooling/cooling.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ void SetOutputGasState(int i, double *ne_guess, double *nH0, double *coolrate)
477477
double u = dmax(All.MinEgySpec, SphP[i].Utherm);
478478

479479
/* update GasState as appropriate given compile-time options and cell properties */
480-
#if defined(USE_SFR)
481-
sfr = get_starformation_rate(i);
482-
#endif /* #if defined(USE_SFR) */
480+
// #if defined(USE_SFR)
481+
// sfr = get_starformation_rate(i); // call is superfluous at this place
482+
// #endif
483483

484484
/* update DoCool */
485485
DoCool.u_old_input = u;

src/amuse/community/arepo/src/io/hdf5_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ herr_t my_H5Pset_shuffle(hid_t plist_id)
847847
*
848848
* \return Non-negative value if successful.
849849
*/
850-
herr_t my_H5Pset_deflate(hid_t plist_id, uint level)
850+
herr_t my_H5Pset_deflate(hid_t plist_id, unsigned int level)
851851
{
852852
herr_t status = H5Pset_deflate(plist_id, level);
853853
if(status < 0)

src/amuse/community/arepo/src/main/proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ hid_t my_H5Pcreate(hid_t class_id);
598598
herr_t my_H5Pclose(hid_t plist);
599599
herr_t my_H5Pset_chunk(hid_t plist, int ndims, const hsize_t *dim);
600600
herr_t my_H5Pset_shuffle(hid_t plist_id);
601-
herr_t my_H5Pset_deflate(hid_t plist_id, uint level);
601+
herr_t my_H5Pset_deflate(hid_t plist_id, unsigned int level);
602602
herr_t my_H5Pset_fletcher32(hid_t plist_id);
603603
#endif /* #ifdef HDF5_FILTERS */
604604

src/amuse/community/arepo/src/time_integration/do_gravity_hydro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void find_gravity_timesteps_and_do_gravity_step_first_half(void)
265265
}
266266

267267
/* reconstruct list of active particles because it is used for other things too (i.e. wind particles) */
268-
timebin_make_list_of_active_particles_up_to_timebin(&TimeBinsGravity, All.HighestActiveTimeBin);
268+
timebin_make_list_of_active_particles_up_to_timebin(&TimeBinsGravity, All.HighestSynchronizedTimeBin);
269269
sumup_large_ints(1, &TimeBinsGravity.NActiveParticles, &TimeBinsGravity.GlobalNActiveParticles);
270270
#else /* #ifdef HIERARCHICAL_GRAVITY */
271271

@@ -276,7 +276,7 @@ void find_gravity_timesteps_and_do_gravity_step_first_half(void)
276276
timebin_make_list_of_active_particles_up_to_timebin(&TimeBinsGravity, TIMEBINS);
277277
else
278278
#endif /* #ifdef FORCE_EQUAL_TIMESTEPS */
279-
timebin_make_list_of_active_particles_up_to_timebin(&TimeBinsGravity, All.HighestActiveTimeBin);
279+
timebin_make_list_of_active_particles_up_to_timebin(&TimeBinsGravity, All.HighestSynchronizedTimeBin);
280280
sumup_large_ints(1, &TimeBinsGravity.NActiveParticles, &TimeBinsGravity.GlobalNActiveParticles);
281281

282282
mpi_printf("KICKS: 1st gravity for highest active timebin=%d: particles %lld\n", All.HighestActiveTimeBin,

0 commit comments

Comments
 (0)