From 239e8b4d3ef045c0d78a68465235fc0f2b5635a7 Mon Sep 17 00:00:00 2001 From: JackHsu Date: Fri, 2 Aug 2019 17:31:49 +0800 Subject: [PATCH] Can set the density for intitial condition from astaroth.conf. --- src/standalone/model/host_memory.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/standalone/model/host_memory.cc b/src/standalone/model/host_memory.cc index 5cda923..19c75f2 100644 --- a/src/standalone/model/host_memory.cc +++ b/src/standalone/model/host_memory.cc @@ -564,6 +564,7 @@ acmesh_init_to(const InitType& init_type, AcMesh* mesh) } case INIT_TYPE_GAUSSIAN_RADIAL_EXPL: acmesh_clear(mesh); + vertex_buffer_set(VTXBUF_LNRHO, mesh->info.real_params[AC_ampl_lnrho], mesh); // acmesh_init_to(INIT_TYPE_RANDOM, mesh); gaussian_radial_explosion(mesh);