The text editor I use to edit stuff remotely is a complete piece of &^$%$, does not synchronize the files correctly. This commit fixes the issues introduced in the last commit
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (C) 2014-2018, Johannes Pekkilae, Miikka Vaeisalae.
|
Copyright (C) 2014-2019, Johannes Pekkilae, Miikka Vaeisalae.
|
||||||
|
|
||||||
This file is part of Astaroth.
|
This file is part of Astaroth.
|
||||||
|
|
||||||
@@ -28,8 +28,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "src/core/errchk.h"
|
|
||||||
#include "run.h"
|
#include "run.h"
|
||||||
|
#include "src/core/errchk.h"
|
||||||
|
|
||||||
// Write all errors from stderr to an <errorlog_name> in the current working
|
// Write all errors from stderr to an <errorlog_name> in the current working
|
||||||
// directory
|
// directory
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (C) 2014-2018, Johannes Pekkilae, Miikka Vaeisalae.
|
Copyright (C) 2014-2019, Johannes Pekkilae, Miikka Vaeisalae.
|
||||||
|
|
||||||
This file is part of Astaroth.
|
This file is part of Astaroth.
|
||||||
|
|
||||||
@@ -50,7 +50,10 @@ host_timestep(const AcReal& umax, const AcMeshInfo& mesh_info)
|
|||||||
// New, closer to the actual Courant timestep
|
// New, closer to the actual Courant timestep
|
||||||
// See Pencil Code user manual p. 38 (timestep section)
|
// See Pencil Code user manual p. 38 (timestep section)
|
||||||
const long double uu_dt = cdt * dsmin / (fabsl(umax) + sqrtl(cs2_sound + 0.0l));
|
const long double uu_dt = cdt * dsmin / (fabsl(umax) + sqrtl(cs2_sound + 0.0l));
|
||||||
const long double visc_dt = cdtv * dsmin * dsmin / max(max(nu_visc, eta), max(gamma, chi));// + 1; // TODO NOTE: comment the +1 out to get scientifically accurate results
|
const long double visc_dt = cdtv * dsmin * dsmin /
|
||||||
|
max(max(nu_visc, eta),
|
||||||
|
max(gamma, chi)); // + 1; // TODO NOTE: comment the +1 out to
|
||||||
|
// get scientifically accurate results
|
||||||
// MV: White the +1? It was messing up my computations!
|
// MV: White the +1? It was messing up my computations!
|
||||||
|
|
||||||
const long double dt = min(uu_dt, visc_dt);
|
const long double dt = min(uu_dt, visc_dt);
|
||||||
|
Reference in New Issue
Block a user