# File produced by Kranc


if (timelevels == 1)
{
  STORAGE: Psi4i_group[1]
}
if (timelevels == 2)
{
  STORAGE: Psi4i_group[2]
}
if (timelevels == 3)
{
  STORAGE: Psi4i_group[3]
}

if (timelevels == 1)
{
  STORAGE: Psi4r_group[1]
}
if (timelevels == 2)
{
  STORAGE: Psi4r_group[2]
}
if (timelevels == 3)
{
  STORAGE: Psi4r_group[3]
}

schedule WeylScal4_Startup at STARTUP
{
  LANG: C
  OPTIONS: meta
} "create banner"

schedule WeylScal4_RegisterVars in MoL_Register
{
  LANG: C
  OPTIONS: meta
} "Register Variables for MoL"

schedule WeylScal4_RegisterSymmetries in SymmetryRegister
{
  LANG: C
  OPTIONS: meta
} "register symmetries"


schedule group WeylScal4_Calculate in CCTK_ANALYSIS
{
} "Calculate the Newman-Penrose quantities"

if (CCTK_EQUALS(fd_order, "2nd"))
{
  schedule psis_calc_2nd in WeylScal4_Calculate as calc_np
  {
    LANG: C
    SYNC: Psi4i_group
    SYNC: Psi4r_group
  } "psis_calc_2nd"
}


if (CCTK_EQUALS(fd_order, "4th"))
{
  schedule psis_calc_4th in WeylScal4_Calculate as calc_np
  {
    LANG: C
    SYNC: Psi4i_group
    SYNC: Psi4r_group
  } "psis_calc_4th"
}

schedule WeylScal4_SelectBoundConds in WeylScal4_Boundaries
{
  LANG: C
  OPTIONS: level
  SYNC: Psi4i_group
  SYNC: Psi4r_group
} "select boundary conditions"

schedule WeylScal4_CheckBoundaries at BASEGRID
{
  LANG: C
  OPTIONS: meta
} "check boundaries treatment"

schedule group ApplyBCs as WeylScal4_ApplyBCs in WeylScal4_Boundaries after WeylScal4_SelectBoundConds
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"

schedule group WeylScal4_Boundaries in WeylScal4_Calculate after calc_np
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"

schedule group WeylScal4_Boundaries in CCTK_POSTRESTRICTINITIAL
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"

schedule group WeylScal4_Boundaries in CCTK_POSTRESTRICT
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"
