This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
/
TimeStepping.pxd
36 lines (31 loc) · 1.68 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
31
32
33
34
35
36
cimport ParallelMPI as ParallelMPI
cimport PrognosticVariables as PrognosticVariables
cimport DiagnosticVariables as DiagnosticVariables
cimport Grid as Grid
cimport Restart
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, DiagnosticVariables.DiagnosticVariables DV, ParallelMPI.ParallelMPI Pa)
cdef void compute_cfl_max(self,Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, DiagnosticVariables.DiagnosticVariables DV,ParallelMPI.ParallelMPI Pa)
cpdef restart(self, Restart.Restart Re)
cdef inline double cfl_time_step(self)