TestSchedule

Tom Goodale \(<\)goodale@cct.lsu.edu\(>\)

\( \)Date\( \)

Abstract

1 Introduction

2 Physical System

3 Numerical Implementation

4 Using This Thorn

4.1 Obtaining This Thorn

4.2 Basic Usage

4.3 Special Behaviour

4.4 Interaction With Other Thorns

4.5 Support and Feedback

5 History

5.1 Thorn Source Code

5.2 Thorn Documentation

5.3 Acknowledgements

References

6 Parameters




cond_a
Scope: private BOOLEAN



Description: Condition for the first conditional clause



Default: no






cond_b
Scope: private BOOLEAN



Description: Condition for the nested conditional clause



Default: no






cond_mode
Scope: private KEYWORD



Description: Selects a branch of the if-else chain



Range Default: one
one
take the first branch
two
take the second, empty branch
three
take the else branch






cond_storage
Scope: private BOOLEAN



Description: Enable the conditional STORAGE clause (requires a driver)



Default: no






out_dir
Scope: private STRING



Description: Directory for the file listing the conditional schedule clauses (empty: do not write the file)



Range Default: (none)
.*
any directory



7 Interfaces

General

Implements:

testschedule

Grid Variables

7.0.1 PRIVATE GROUPS





  Group Names     Variable Names   Details    




tsc_a tsc_a compact 0
description Test variable for conditional schedule clauses
dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




tsc_b tsc_b compact 0
description Test variable for conditional schedule clauses
dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




tsc_c tsc_c compact 0
description Test variable for conditional schedule clauses
dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




tsc_d tsc_d compact 0
description Test variable for conditional schedule clauses
dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




tsc_e tsc_e compact 0
description Test variable for conditional schedule clauses
dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




8 Schedule

This section lists all the variables which are assigned storage by thorn CactusTest/TestSchedule. Storage can either last for the duration of the run (Always means that if this thorn is activated storage will be assigned, Conditional means that if this thorn is activated storage will be assigned for the duration of the run if some condition is met), or can be turned on for the duration of a schedule function.

Storage

NONE

Scheduled Functions

CCTK_STARTUP

  testschedule_cctk_startup

  test to see if function is placed in schedule and run at cctk_startup

 

  Language: c
  Type: function

CCTK_RECOVER_PARAMETERS

  testschedule_cctk_recover_parameters

  test to see if function is placed in schedule and run at cctk_recover_parameters

 

  Language: c
  Type: function

CCTK_CHECKPOINT

  testschedule_cctk_checkpoint

  test to see if function is placed in schedule and run at cctk_checkpoint

 

  Language: c
  Type: function

CCTK_PRESTEP

  testschedule_cctk_prestep

  test to see if function is placed in schedule and run at cctk_prestep

 

  Language: c
  Type: function

CCTK_EVOL

  testschedule_cctk_evol

  test to see if function is placed in schedule and run at cctk_evol

 

  Language: c
  Type: function

CCTK_POSTSTEP

  testschedule_cctk_poststep

  test to see if function is placed in schedule and run at cctk_poststep

 

  Language: c
  Type: function

CCTK_POSTRESTRICT

  testschedule_cctk_postrestrict

  test to see if function is placed in schedule and run at cctk_postrestrict

 

  Language: c
  Type: function

CCTK_POSTREGRID

  testschedule_cctk_postregrid

  test to see if function is placed in schedule and run at cctk_postregrid

 

  Language: c
  Type: function

CCTK_ANALYSIS

  testschedule_cctk_analysis

  test to see if function is placed in schedule and run at cctk_analysis

 

  Language: c
  Type: function

CCTK_TERMINATE

  testschedule_cctk_terminate

  test to see if function is placed in schedule and run at cctk_terminate

 

  Language: c
  Type: function

CCTK_SHUTDOWN

  testschedule_cctk_shutdown

  test to see if function is placed in schedule and run at cctk_shutdown

 

  Language: c
  Type: function

CCTK_PARAMCHECK

  testschedule_conditionalgroup

  test conditional clauses in schedule groups

 

  Sync: tsc_a [if (cond_a)]
    tsc_b [if !(cond_a)]
  Type: group

CCTK_WRAGH

  testschedule_cctk_wragh

  test to see if function is placed in schedule and run at cctk_wragh

 

  Language: c
  Type: function

TestSchedule_ConditionalGroup

  testschedule_conditionalgroupmember

  record that the schedule group with conditional clauses is executed

 

  Language: c
  Type: function

CCTK_PARAMCHECK

  testschedule_conditional

  test conditional clauses in schedule blocks

 

  After: testschedule_conditionalgroup
  Invalidates: tsc_c(everywhere) [if !(cctk_equals(cond_mode, ”one”)) && !(cctk_equals(cond_mode, ”two”))]
  Language: c
  Reads: tsc_a(everywhere)
    tsc_d(everywhere) [if !(cctk_equals(cond_mode, ”one”)) && !(cctk_equals(cond_mode, ”two”)) && (cond_b && cctk_isthornactive(”testschedule”))]
  Storage: tsc_e [if (cond_storage)]
  Sync: tsc_b [if (cond_a)]
  Triggers: tsc_e [if !(cctk_equals(cond_mode, ”one”)) && !(cctk_equals(cond_mode, ”two”)) && (cond_b && cctk_isthornactive(”testschedule”))]
  Type: function
  Writes: tsc_b(interior) [if (cond_a)]
    tsc_c(everywhere) [if (cctk_equals(cond_mode, ”one”))]

CCTK_PARAMCHECK

  testschedule_cctk_paramcheck

  test to see if function is placed in schedule and run at cctk_paramcheck

 

  Language: c
  Type: function

CCTK_BASEGRID

  testschedule_cctk_basegrid

  test to see if function is placed in schedule and run at cctk_basegrid

 

  Language: c
  Type: function

CCTK_INITIAL

  testschedule_cctk_initial

  test to see if function is placed in schedule and run at cctk_initial

 

  Language: c
  Type: function

CCTK_POSTINITIAL

  testschedule_cctk_postinitial

  test to see if function is placed in schedule and run at cctk_postinitial

 

  Language: c
  Type: function

CCTK_RECOVER_VARIABLES

  testschedule_cctk_recover_variables

  test to see if function is placed in schedule and run at cctk_recover_variables

 

  Language: c
  Type: function

CCTK_POST_RECOVER_VARIABLES

  testschedule_cctk_post_recover_variables

  test to see if function is placed in schedule and run at cctk_post_recover_variables

 

  Language: c
  Type: function

CCTK_CPINITIAL

  testschedule_cctk_cpinitial

  test to see if function is placed in schedule and run at cctk_cpinitial

 

  Language: c
  Type: function