aboutsummaryrefslogtreecommitdiff
path: root/src/Mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mapping.c')
-rw-r--r--src/Mapping.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/Mapping.c b/src/Mapping.c
index 00badad..e8d3e9c 100644
--- a/src/Mapping.c
+++ b/src/Mapping.c
@@ -69,18 +69,18 @@ static int IsFullHyperslab (const pGA *GA,
const hslab_mapping_t *mapping);
-CCTK_INT Hyperslab_DefineLocalMappingByIndex (const cGH *GH,
- CCTK_INT vindex,
- CCTK_INT hdim,
- const CCTK_INT *direction,
- const CCTK_INT *origin,
- const CCTK_INT *extent,
- const CCTK_INT *downsample,
- CCTK_INT table_handle,
- t_hslabConversionFn function,
- CCTK_INT *hsize_local,
- CCTK_INT *hsize_global,
- CCTK_INT *hoffset_global)
+CCTK_INT PUGHSlab_DefineLocalMappingByIndex (const cGH *GH,
+ CCTK_INT vindex,
+ CCTK_INT hdim,
+ const CCTK_INT *direction,
+ const CCTK_INT *origin,
+ const CCTK_INT *extent,
+ const CCTK_INT *downsample,
+ CCTK_INT table_handle,
+ t_hslabConversionFn function,
+ CCTK_INT *hsize_local,
+ CCTK_INT *hsize_global,
+ CCTK_INT *hoffset_global)
{
CCTK_INT retval;
@@ -92,16 +92,16 @@ CCTK_INT Hyperslab_DefineLocalMappingByIndex (const cGH *GH,
}
-CCTK_INT Hyperslab_DefineGlobalMappingByIndex (const cGH *GH,
- CCTK_INT vindex,
- CCTK_INT hdim,
- const CCTK_INT *direction,
- const CCTK_INT *origin,
- const CCTK_INT *extent,
- const CCTK_INT *downsample,
- CCTK_INT table_handle,
- t_hslabConversionFn function,
- CCTK_INT *hsize)
+CCTK_INT PUGHSlab_DefineGlobalMappingByIndex (const cGH *GH,
+ CCTK_INT vindex,
+ CCTK_INT hdim,
+ const CCTK_INT *direction,
+ const CCTK_INT *origin,
+ const CCTK_INT *extent,
+ const CCTK_INT *downsample,
+ CCTK_INT table_handle,
+ t_hslabConversionFn function,
+ CCTK_INT *hsize)
{
CCTK_INT retval;
@@ -148,7 +148,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
/* PUGHSlab doesn't use table information */
if (table_handle >= 0)
{
- CCTK_WARN (1, "Hyperslab_DefineGlobalMappingByIndex: table information is "
+ CCTK_WARN (1, "PUGHlab_DefineGlobalMappingByIndex: table information is "
"ignored");
}
@@ -234,7 +234,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
if (retval)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: %s", error_msg);
+ "PUGHlab_DefineGlobalMappingByIndex: %s", error_msg);
return (retval);
}
@@ -270,7 +270,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: %d-direction vector "
+ "PUGHlab_DefineGlobalMappingByIndex: %d-direction vector "
"is a null vector", dim);
return (-7);
}
@@ -280,7 +280,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: %d-direction vector "
+ "PUGHlab_DefineGlobalMappingByIndex: %d-direction vector "
"isn't axis-orthogonal", dim);
return (-7);
}
@@ -291,7 +291,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: diagonals can be "
+ "PUGHlab_DefineGlobalMappingByIndex: diagonals can be "
"extracted from non-staggered 3D variables only");
return (-7);
}
@@ -309,7 +309,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
if (mapping->do_dir[vdim] > 1)
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
- CCTK_WARN (1, "Hyperslab_DefineGlobalMappingByIndex: duplicate direction "
+ CCTK_WARN (1, "PUGHlab_DefineGlobalMappingByIndex: duplicate direction "
"vectors given");
return (-8);
}
@@ -328,7 +328,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: extent in "
+ "PUGHlab_DefineGlobalMappingByIndex: extent in "
"%d-direction exceeds grid size", dim);
return (-8);
}
@@ -339,7 +339,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
{
free (mapping->do_dir); free (mapping->global_hsize); free (mapping);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Hyperslab_DefineGlobalMappingByIndex: extent in "
+ "PUGHlab_DefineGlobalMappingByIndex: extent in "
"%d-direction exceeds grid size", vdim);
return (-8);
}
@@ -594,7 +594,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
pughGH->PUGH_COMM_WORLD));
/* set the displacements/receive counts for the data gather operation
- in the following Hyperslab_Get() call;
+ in the following PUGHlab_Get() call;
also sum up the total number of data points of the global hyperslab */
mapping->totals_global = 0;
for (i = 0; i < nprocs; i++)
@@ -638,7 +638,7 @@ static CCTK_INT DefineMapping (const cGH *GH,
}
-CCTK_INT Hyperslab_FreeMapping (CCTK_INT mapping_handle)
+CCTK_INT PUGHSlab_FreeMapping (CCTK_INT mapping_handle)
{
hslab_mapping_t *mapping;