aboutsummaryrefslogtreecommitdiff
path: root/src/CheckParameters.F
blob: e02897ef58dccf5a84c03e17c5f50493aa19d00a (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      CheckParameters.F
   @date      
   @author    Gabrielle Allen
   @desc 
              Check parameters for the wave equation evolver
   @enddesc 
 @@*/

#include "cctk.h" 
#include "cctk_parameters.h"
#include "cctk_arguments.h"


 /*@@
   @routine    WaveToy_CheckParameters
   @date       
   @author     Gabrielle Allen
   @desc 
               Check parameters for the wave equation evolver
   @enddesc 
   @calls      
   @calledby   
   @history 
 
   @endhistory 

@@*/

      subroutine WaveToyF90_CheckParameters(CCTK_FARGUMENTS)

      implicit none

      DECLARE_CCTK_FARGUMENTS
      DECLARE_CCTK_PARAMETERS

      INTEGER CCTK_Equals

      if (CCTK_Equals(initial_data,"box")==1) then

         if (CCTK_Equals(type, "box")==0) then
            call CCTK_PARAMWARN("Must have a box grid with box initial data")
         end if

         if (kx==0 .or. ky==0 .or. kz==0) then
            call CCTK_PARAMWARN("Cannot have zero kx,ky,kz for box initial data")
         end if

      end if

      end subroutine WaveToyF90_CheckParameters