[Trilinos-Users] tracking down NaNs: best practices?

Hoemmen, Mark mhoemme at sandia.gov
Fri Oct 21 12:06:18 MDT 2011


With C99 support or compiler extensions, you can set the CPU's floating-point flags so that NaNs always raise a floating-point exception when computed.  This happens even when you want to make a NaN on purpose (e.g., "return 1.0 / 0.0;"), so it may not always be helpful.  However, it's worth a try.

mfh
________________________________________
From: trilinos-users-bounces at software.sandia.gov [trilinos-users-bounces at software.sandia.gov] on behalf of trilinos-users-request at software.sandia.gov [trilinos-users-request at software.sandia.gov]
Sent: Friday, October 21, 2011 12:00 PM
To: trilinos-users at software.sandia.gov
Subject: Trilinos-Users Digest, Vol 74, Issue 17

Send Trilinos-Users mailing list submissions to
        trilinos-users at software.sandia.gov

To subscribe or unsubscribe via the World Wide Web, visit
        http://software.sandia.gov/mailman/listinfo/trilinos-users
or, via email, send a message with subject or body 'help' to
        trilinos-users-request at software.sandia.gov

You can reach the person managing the list at
        trilinos-users-owner at software.sandia.gov

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Trilinos-Users digest..."


Today's Topics:

   1. tracking down NaNs: best practices? (Nico Schl?mer)


----------------------------------------------------------------------

Message: 1
Date: Fri, 21 Oct 2011 19:07:58 +0200
From: Nico Schl?mer <nico.schloemer at ua.ac.be>
Subject: [Trilinos-Users] tracking down NaNs: best practices?
To: "Trilinos Users" <Trilinos-Users at software.sandia.gov>
Message-ID: <4EA1A6EE.9070400 at ua.ac.be>
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Hi all,

I'm just trying to track down some NaNs that (sometimes) appear on mpi
runs in a code that touches various Trilinos packages.
Doing so, I find myself climbing through Trilinos methods and the
classes with plenty of 'std::cout's which obviously takes much time.
There must be a better way to do this. (Trilinos compile options, helper
methods...?)

Any hints?

Cheers,
Nico



------------------------------

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users


End of Trilinos-Users Digest, Vol 74, Issue 17
**********************************************



More information about the Trilinos-Users mailing list