Cactus Code Thorn TestFunctions2 Authors : Cactus Maintainers cactusmaint@cactuscode.org CVS info : $Header$ -------------------------------------------------------------------------- Purpose of the thorn -------------------- One of the test thorns for function aliasing (TestFunctions1B, TestFunctions1B and TestFunctions2) Test Thorns for Function Aliasing --------------------------------- TestFunction1A: provides the functions PrintMe(CCTK_REAL) - with TestFunctions1A_PrintMe SumMe(CCTK_REAL,CCTK_REAL) - with TestFunctions1A_SumMe AddVector(CCTK_INT,CCTK_REAL:ARRAY) - with TestFunctions1A_AddVector PrintString(CCTK_INT, CCTK_STRING) - with TestFunctions1A_PrintString Print2String(CCTK_INT,CCTK_STRING,CCTK_STRING) - with TestFunctions1A_Print2String Print3String(CCTK_INT,CCTK_STRING,CCTK_STRING,CCTK_STRING) - TestFunctions1A_Print2String TestFunction1B: provides the functions PrintMe(CCTK_REAL) - with TestFunctions1B_PrintMe SumMe(CCTK_REAL,CCTK_REAL) - with TestFunctions1B_SumMe ReturnCCTKTime(CCTK_POINTER) - with TestFunctions1B_ReturnCCTKTime TestFunction2: Uses the aliased functions from both C and Fortran routines Parameter Files --------------- All the test parameter files are in the thorn TestFunctions2 Calling aliased functions from Fortran: TestFunctions2_no.par - no aliased functions provided TestFunctions2_yesa.par - aliased functions provided by TestFunctions1A TestFunctions2_yesb.par - aliased functions provided by TestFunctions1B TestFunctions2_yesab.par - aliased functions provided by both TestFunctions1A and TestFunctions1B Calling aliased functions from C: TestFunctions2_no_C.par - no aliased functions provided TestFunctions2_yesa_C.par - aliased functions provided by TestFunctions1A TestFunctions2_yesb_C.par - aliased functions provided by TestFunctions1B TestFunctions2_yesab_C.par - aliased functions provided by both TestFunctions1A and TestFunctions1B