From 9cb0ef8e18b65bb8b28924b598c8475abe16ab92 Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 31 Aug 2006 15:11:19 +0000 Subject: Change prototype of functions scheduled at startup to return and int instead of void. git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@44 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef --- src/InterpLocalUniform.h | 2 +- src/startup.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/InterpLocalUniform.h b/src/InterpLocalUniform.h index 61a4cf4..d3e23c2 100644 --- a/src/InterpLocalUniform.h +++ b/src/InterpLocalUniform.h @@ -188,7 +188,7 @@ struct Jacobian_info */ /* functions in "startup.c" */ -void AEILocalInterp_U_Startup(void); +int AEILocalInterp_U_Startup(void); /* functions in "InterpLocalUniform.c" */ /* ... these functions are registered by code in "startup.c", */ diff --git a/src/startup.c b/src/startup.c index 63e3c63..102196c 100644 --- a/src/startup.c +++ b/src/startup.c @@ -28,7 +28,7 @@ CCTK_FILEVERSION(AEIThorns_AEILocalInterp_src_startup_c) It registers the interpolation operators. @enddesc @@*/ -void AEILocalInterp_U_Startup(void) +int AEILocalInterp_U_Startup(void) { CCTK_InterpRegisterOpLocalUniform(AEILocalInterp_U_Lagrange_TP, "Lagrange polynomial interpolation (tensor product)", @@ -48,4 +48,6 @@ CCTK_InterpRegisterOpLocalUniform(AEILocalInterp_U_Lagrange_TP, CCTK_InterpRegisterOpLocalUniform(AEILocalInterp_U_Lagrange_TP, "generalized polynomial interpolation", CCTK_THORNSTRING); + +return 0; } -- cgit v1.2.3