forked from pressel/pycles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeStepping.pxd
30 lines (28 loc) · 1.48 KB
/
TimeStepping.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cimport ParallelMPI as ParallelMPI
cimport PrognosticVariables as PrognosticVariables
cimport Grid as Grid
cdef class TimeStepping:
cdef:
public double dt
public double t
public double cfl_max
public double cfl_limit
public double dt_max
public double dt_initial
public double t_max
double [:,:] value_copies
double [:,:] tendency_copies
public Py_ssize_t rk_step
public Py_ssize_t n_rk_steps
public Py_ssize_t ts_type
void initialize_second(self,PrognosticVariables.PrognosticVariables PV)
void initialize_third(self,PrognosticVariables.PrognosticVariables PV)
void initialize_fourth(self,PrognosticVariables.PrognosticVariables PV)
cpdef initialize(self, namelist, PrognosticVariables.PrognosticVariables PV, ParallelMPI.ParallelMPI Pa)
cpdef update(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, ParallelMPI.ParallelMPI Pa)
cpdef update_second(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV)
cpdef update_third(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV)
cpdef update_fourth(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV)
cpdef adjust_timestep(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, ParallelMPI.ParallelMPI Pa)
cdef void compute_cfl_max(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, ParallelMPI.ParallelMPI Pa)
cdef inline double cfl_time_step(self)