diff options
-rw-r--r-- | src/Boundary.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Boundary.c b/src/Boundary.c index 48bb013..4e0c0e3 100644 --- a/src/Boundary.c +++ b/src/Boundary.c @@ -203,14 +203,6 @@ CCTK_INT Bdry_Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST _GH, "properly."); } - /* Check if NULL has been passed for fn_pointer */ - if (!fn_pointer) - { - /* Use dummy function if NULL function registered (e.g. for - non-local physical bcs) */ - fn_pointer = (phys_bc_fn_ptr) &BndNone; - } - /* Check input arguments */ if (!fn_pointer) { @@ -219,6 +211,14 @@ CCTK_INT Bdry_Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST _GH, "Is this intentional?"); } + /* Check if NULL has been passed for fn_pointer */ + if (!fn_pointer) + { + /* Use dummy function if NULL function registered (e.g. for + non-local physical bcs) */ + fn_pointer = (phys_bc_fn_ptr) &BndNone; + } + /* Create the registered routines table if necessary */ if (physbc_table_handle == -1) { |