Skip to content
Snippets Groups Projects
Commit c3795f39 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'gadget2_output' into 'master'

Proper name for entropy variable in Gadget-2 output

Fix to #151. 

See merge request !157
parents 8c14753b 40be1c06
No related branches found
No related tags found
1 merge request!157Proper name for entropy variable in Gadget-2 output
...@@ -83,7 +83,7 @@ __attribute__((always_inline)) INLINE static void hydro_write_particles( ...@@ -83,7 +83,7 @@ __attribute__((always_inline)) INLINE static void hydro_write_particles(
writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "SmoothingLength", writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "SmoothingLength",
FLOAT, N, 1, parts, N_total, mpi_rank, offset, h, us, FLOAT, N, 1, parts, N_total, mpi_rank, offset, h, us,
UNIT_CONV_LENGTH); UNIT_CONV_LENGTH);
writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "InternalEnergy", writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "Entropy",
FLOAT, N, 1, parts, N_total, mpi_rank, offset, entropy, us, FLOAT, N, 1, parts, N_total, mpi_rank, offset, entropy, us,
UNIT_CONV_ENTROPY_PER_UNIT_MASS); UNIT_CONV_ENTROPY_PER_UNIT_MASS);
writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "ParticleIDs", writeArray(h_grp, fileName, xmfFile, partTypeGroupName, "ParticleIDs",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment