TestGlobalReduce

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 compact 0
grid_real description grid array to be reduced of type real
dimensions 3
distribution DEFAULT
group type ARRAY
size ARRAY_NX
  size ARRAY_NY
size ARRAY_NZ
timelevels 1
variable type REAL




int_3d compact 0
grid_int description grid array to be reduced of type int
dimensions 3
distribution DEFAULT
group type ARRAY
size ARRAY_NX
  size ARRAY_NY
size ARRAY_NZ
timelevels 1
variable type INT




real_gf compact 0
real_test_gf description a real gf to test for gaussian initial data
real_sum_gf dimensions 3
distribution DEFAULT
group type GF
timelevels 1
variable type REAL




weight_group compact 0
weight description a weight variable to be used in reduction
dimensions 3
distribution DEFAULT
group type ARRAY
size ARRAY_NX
  size ARRAY_NY
size ARRAY_NZ
timelevels 1
variable type REAL




int_vals compact 0
int_max_3D description results from weighted int reduction
int_sum_3D dimensions 0
int_avg_3D distribution CONSTANT
int_min_3D group type SCALAR
timelevels 1
variable type INT




real_vals compact 0
real_max_3D description results from real reduction
real_sum_3D dimensions 0
real_avg_3D distribution CONSTANT
real_min_3D group type SCALAR
timelevels 1
variable type REAL








  Group Names     Variable Names   Details    




weighted_int_vals compact 0
weighted_int_max description results from int reduction
weighted_int_sum dimensions 0
weighted_int_avg distribution CONSTANT
weighted_int_min group type SCALAR
timelevels 1
variable type INT




weighted_real_vals compact 0
weighted_real_max description results from weighted real reduction
weighted_real_sum dimensions 0
weighted_real_avg distribution CONSTANT
weighted_real_min group type SCALAR
timelevels 1
variable type REAL




gf_vals compact 0
gf_max description results from gf reduction
gf_sum dimensions 0
gf_norm1 distribution CONSTANT
gf_norm2 group type SCALAR
gf_norm3 timelevels 1
gf_norm4 variable type REAL




scalar_reduction compact 0
num_to_reduce description scalar reduction variables
sum_value dimensions 0
max_value distribution CONSTANT
group type SCALAR
timelevels 1
variable type REAL




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