Yaakoub Y El Khamra <yye00@cct.lsu.edu>

August 27 2004

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 Examples

4.6 Support and Feedback

5 History

5.1 Thorn Source Code

5.2 Thorn Documentation

5.3 Acknowledgements

References

6 Parameters




amplitude
Scope: private  REAL



Description: The amplitude of the waves



Range   Default: 1.0
*:*
No restriction






array_nx
Scope: private  INT



Description: Size of arrays in x direction



Range   Default: 5
0:*






array_ny
Scope: private  INT



Description: Size of arrays in y direction



Range   Default: 4
0:*






array_nz
Scope: private  INT



Description: Size of arrays in z direction



Range   Default: 10
0:*






dest_proc
Scope: private  INT



Description: processor to which reduction is to be made



Range   Default: (none)
*:*
number can be any valid integer






map_x
Scope: private  INT



Description: number of original points to map to in x-direction



Range   Default: 10
0:*
has to be positive






map_y
Scope: private  INT



Description: number of original points to map to in y-direction



Range   Default: 10
0:*
has to be positive






map_z
Scope: private  INT



Description: number of original points to map to in z-direction



Range   Default: 10
0:*
has to be positive






radius
Scope: private  REAL



Description: The radius of the gaussian wave



Range   Default: 0.1
0:*
Positive






sigma
Scope: private  REAL



Description: The sigma for the gaussian wave



Range   Default: 0.1
0:*
Positive






uniform_weight_value
Scope: private  REAL



Description: The uniform value of the weight



Range   Default: 0.5
*:*
Can be anything



7 Interfaces

General

Implements:

testglobalreduce

Inherits:

grid

Grid Variables

7.0.1 PUBLIC GROUPS




  Group Names    Variable Names    Details   




real_3d   compact0
grid_real   descriptiongrid array to be reduced of type real
  dimensions3
  distributionDEFAULT
  group typeARRAY
  sizeARRAY_NX
    sizeARRAY_NY
  sizeARRAY_NZ
  timelevels1
 variable typeREAL




int_3d   compact0
grid_int   descriptiongrid array to be reduced of type int
  dimensions3
  distributionDEFAULT
  group typeARRAY
  sizeARRAY_NX
    sizeARRAY_NY
  sizeARRAY_NZ
  timelevels1
 variable typeINT




real_gf   compact0
real_test_gf   descriptiona real gf to test for gaussian initial data
real_sum_gf   dimensions3
  distributionDEFAULT
  group typeGF
  timelevels1
 variable typeREAL




weight_group   compact0
weight   descriptiona weight variable to be used in reduction
  dimensions3
  distributionDEFAULT
  group typeARRAY
  sizeARRAY_NX
    sizeARRAY_NY
  sizeARRAY_NZ
  timelevels1
 variable typeREAL




int_vals   compact0
int_max_3D   descriptionresults from weighted int reduction
int_sum_3D   dimensions0
int_avg_3D   distributionCONSTANT
int_min_3D   group typeSCALAR
  timelevels1
 variable typeINT




real_vals   compact0
real_max_3D   descriptionresults from real reduction
real_sum_3D   dimensions0
real_avg_3D   distributionCONSTANT
real_min_3D   group typeSCALAR
  timelevels1
 variable typeREAL








  Group Names    Variable Names    Details   




weighted_int_vals   compact0
weighted_int_max   descriptionresults from int reduction
weighted_int_sum   dimensions0
weighted_int_avg   distributionCONSTANT
weighted_int_min   group typeSCALAR
  timelevels1
 variable typeINT




weighted_real_vals   compact0
weighted_real_max   descriptionresults from weighted real reduction
weighted_real_sum   dimensions0
weighted_real_avg   distributionCONSTANT
weighted_real_min   group typeSCALAR
  timelevels1
 variable typeREAL




gf_vals   compact0
gf_max   descriptionresults from gf reduction
gf_sum   dimensions0
gf_norm1   distributionCONSTANT
gf_norm2   group typeSCALAR
gf_norm3   timelevels1
gf_norm4  variable typeREAL




scalar_reduction   compact0
num_to_reduce   descriptionscalar reduction variables
sum_value   dimensions0
max_value   distributionCONSTANT
  group typeSCALAR
  timelevels1
 variable typeREAL




8 Schedule

This section lists all the variables which are assigned storage by thorn CactusTest/TestGlobalReduce. 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

 

Always:  
real_3d int_3d real_vals int_vals weighted_real_vals weighted_int_vals real_gf[1] gf_vals[1] scalar_reduction weight_group 
   

Scheduled Functions

CCTK_INITIAL

  testglobalreduce_initial

  initialize the input arrays to values

 

 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_avg

  test out gf reduction

 

 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_weighted_minimum

  test weighted global minimum reduction

 

 After: testglobalreducec_weighted_maximum
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_weighted_sum

  test weighted global sum reduction

 

 After: testglobalreducec_weighted_minimum
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_maximum

  test out maximum reduction

 

 After: testglobalreducec_avg
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_minimum

  test out minimum reduction

 

 After: testglobalreducec_maximum
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_sum

  test out sum reduction

 

 After: testglobalreducec_minimum
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_gf

  test out gf reduction

 

 After: testglobalreducec_sum
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_norms

  test out gf reduction

 

 After: testglobalreducec_gf
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_scalar

  test out gf reduction

 

 After: testglobalreducec_norms
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_weighted_avg

  test weighted global average reduction

 

 After: testglobalreducec_scalar
 Language:c
 Type: function

CCTK_POSTINITIAL

  testglobalreducec_weighted_maximum

  test weighted global maximum reduction

 

 After: testglobalreducec_weighted_avg
 Language:c
 Type: function