Preparing isothermal collapse.

This commit is contained in:
Miikka Vaisala
2019-08-22 18:18:30 +08:00
parent a81bc22fb6
commit 1410e57866
8 changed files with 330 additions and 23 deletions

View File

@@ -198,7 +198,8 @@ run_simulation(void)
AcMesh* mesh = acmesh_create(mesh_info);
// TODO: This need to be possible to define in astaroth.conf
acmesh_init_to(INIT_TYPE_GAUSSIAN_RADIAL_EXPL, mesh);
//acmesh_init_to(INIT_TYPE_GAUSSIAN_RADIAL_EXPL, mesh);
acmesh_init_to(INIT_TYPE_SIMPLE_CORE, mesh);
#if LSINK
vertex_buffer_set(VTXBUF_ACCRETION, 0.0, mesh);
@@ -270,7 +271,7 @@ run_simulation(void)
vertex_buffer_set(VTXBUF_ACCRETION, 0.0, mesh);
int on_off_switch;
if (i < 1000) {
if (i < 1) {
on_off_switch = 0; //accretion is off till 1000 steps.
} else {
on_off_switch = 1;