[Users] nan using Carpet

Roland Haas rhaas at illinois.edu
Fri Oct 30 14:06:52 CDT 2020

Hello David,

you should be able to run basic PUGH parfiles with Carpet.

The one difference that comes to mind is that Carpet by default will
poison (fill with NaN) unitialized memory while PUGH leaves it the way
the OS provided it (which usually means either 0 or whatever value it
had before.

You an set:

Carpet::poison_new_timelevels = no
CarpetLib::poison_new_memory = no

and if that "fixes" the problem then in fact you have a bug in your
code and are accessing unitialized memory.

Can you provide a working example parfile to reproduce the problem?


> Hello,
> I’m switching a code I wrote from using PUGH to using Carpet but now I get lots of NAN’s when I run it.  Are there any special parameters needed to run Carpet as unigrid and behave like PUGH?  I am also using MoL and get this issue even when I use Euler methods and trivial initial data.
> -DG
> _______________________________________________
> Users mailing list
> Users at einsteintoolkit.org
> http://lists.einsteintoolkit.org/mailman/listinfo/users

My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20201030/514dfbe2/attachment.bin 

More information about the Users mailing list