blob: dca2e8b8f6b2e9a9fe1487be64775c156bd39fbb (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*@@
@file WaveToy.F
@date
@author Tom Goodale
@desc
Solve the 3D Wave Equation
@enddesc
@@*/
#include "cctk.h"
#include "cctk_parameters.h"
#include "cctk_arguments.h"
/*@@
@routine WaveToy_Initial
@date
@author Tom Goodale
@desc
Set up initial properties for Wave Toy evolver
@enddesc
@calls
@calledby
@history
@endhistory
@@*/
subroutine WaveToy_Initial(CCTK_FARGUMENTS)
implicit none
DECLARE_CCTK_FARGUMENTS
DECLARE_CCTK_PARAMETERS
CCTK_REAL :: min_delta,dx,dy,dz
dx = cctk_delta_space(1)
dy = cctk_delta_space(2)
dz = cctk_delta_space(3)
c Calculate timestep
c ------------------
min_delta = min(dx,dy,dz)
cctk_delta_time = dtfac*min_delta
end subroutine wavetoy_initial
|