[Carpet] carpet experimental on belladonna

Frank Löffler frank.loeffler at aei.mpg.de
Tue Jul 3 14:30:47 CEST 2007


> On Jun 12, 2007, at 11:29:51, Nils Dorband wrote:
> >"/home/dorband/Cactustmp/Cactus/configs/bssn/build/CarpetLib/
> >gdata.cc", line 277: error:
> >           function call is not allowed in a constant expression
> >         static_assert (abs(0.1) > 0,

On Tue, Jun 12, 2007 at 12:05:24PM -0400, Erik Schnetter wrote:
> The static_assert is an assertion that is supposed to be evaluated at compile time, 
> so that errors are caught earlier.  In this case, the compiler doesn't seem to know 
> how to handle the abs function at compile time.  All other compilers do, but I don't 
> know what the C++ standard says in this respect.

> As a work-around, you can replace the line by
> 	assert (abs(0.1) > 0);

Hi,

Is there already some other solution than this workaround?

Frank



More information about the developers mailing list