On 11 Jul 2017, at 09:42, Jens Mahlmann <jensm...@alumni.uv.es> wrote:

> Dear all,
> 
> I am currently working on an analysis thorn which makes use of different 
> quantities provided by the thorn ADMMacros. In one .cc file I assemble 
> different routines. Especialy, one of those uses UPPERMET, and another one 
> uses TRRICCI.
> 
> Using the declaration and definition from the thorn documentation, I made 
> sure to correctly employ the includes of _declare, _guts, and, _undefine.
> 
> However, when compiling I keep receiving the following error:
> In file included from 
> /scratch/je/jensflo/EinsteinTools/Cactus/arrangements/EinsteinBase/ADMMacros/src/macro/UPPERMET_guts.h(14),
>                  from 
> /scratch/je/jensflo/EinsteinTools/Cactus/arrangements/EinsteinBase/ADMMacros/src/macro/TRRICCI_guts.h(15),
>                  from 
> /scratch/je/jensflo/EinsteinTools/Cactus/configs/sim/build/FFEvolve/FFEvolve_Analysis.cc(412):
> /scratch/je/jensflo/EinsteinTools/Cactus/arrangements/EinsteinBase/ADMMacros/src/macro/DETG_guts.h(36):
>  error: identifier "detg_psi4" is undefined
>   DETG_PSI4 = 1;
> 
> This error occurs for a variety of other identifiers in the same place. If I 
> take out the TRRICCI part from the code, I do not get these error messages. I 
> would be so glad about an insight into this. 
> Thank you so much and my best from Valencia

Hi,

I have never used ADMMacros, but looking at the code, it looks like DETG_PSI4 
is defined in DETG_declare.h, which also declares the variable it names 
(CCTK_REAL DETG_PSI4), and this header is included by UPPERMET_declare.h, which 
is included by TRRICCI_declare.h.  So as far as I can see, if you include 
TRRICCI_declare.h, you should get the declaration of DETG_PSI4, which is 
detg_psi4.

One thing to check is that you have included the header files in your function, 
not at the top of the file with the other includes.  Could you post your code, 
or a small cut down example which we can use to reproduce the problem?

-- 
Ian Hinder
http://members.aei.mpg.de/ianhin

_______________________________________________
Users mailing list
Users@einsteintoolkit.org
http://lists.einsteintoolkit.org/mailman/listinfo/users

Reply via email to