Hi,
Is there an "official" way for a thorn to get the maximum number of refinement levels? There is a maxreflevels in carpet_public.hh, but it is disabled. There is no aliased Carpet function to find this either.
Ian
I have these three aliased functions in Carpet:
CCTK_INT FUNCTION \ GetRefinementLevel \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetRefinementLevel \ WITH Carpet_GetRefinementLevel \ LANGUAGE C
CCTK_INT FUNCTION \ GetRefinementLevels \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetRefinementLevels \ WITH Carpet_GetRefinementLevels \ LANGUAGE C
CCTK_INT FUNCTION \ GetMaxRefinementLevels \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetMaxRefinementLevels \ WITH Carpet_GetMaxRefinementLevels \ LANGUAGE C
If they are not on the main branch, then this change should be merged.
-erik
On Thu, Oct 20, 2016 at 12:31 PM, Ian Hinder ian.hinder@aei.mpg.de wrote:
Hi,
Is there an "official" way for a thorn to get the maximum number of refinement levels? There is a maxreflevels in carpet_public.hh, but it is disabled. There is no aliased Carpet function to find this either.
-- Ian Hinder http://members.aei.mpg.de/ianhin
Users mailing list Users@einsteintoolkit.org http://lists.einsteintoolkit.org/mailman/listinfo/users
On 20 Oct 2016, at 18:58, Erik Schnetter schnetter@cct.lsu.edu wrote:
Ian
I have these three aliased functions in Carpet:
CCTK_INT FUNCTION \ GetRefinementLevel \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetRefinementLevel \ WITH Carpet_GetRefinementLevel \ LANGUAGE C
CCTK_INT FUNCTION \ GetRefinementLevels \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetRefinementLevels \ WITH Carpet_GetRefinementLevels \ LANGUAGE C
CCTK_INT FUNCTION \ GetMaxRefinementLevels \ (CCTK_POINTER_TO_CONST IN cctkGH) PROVIDES FUNCTION GetMaxRefinementLevels \ WITH Carpet_GetMaxRefinementLevels \ LANGUAGE C
If they are not on the main branch, then this change should be merged.
Aha, GetMaxRefinementLevels was added on 26-Apr-2016 (https://bitbucket.org/eschnett/carpet/history-node/fbe3c3700ac9/Carpet/inter...), and I am using the ET_2015_11 release, which is why I didn't see it. Sorry!
users@lists.einsteintoolkit.org