aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Handle cctk_ash correctly for complex numbersHEADmastereschnett2013-01-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@114 ff385933-4943-42dc-877b-ffc776028de6
* Support array padding (take cctk_ash into account)eschnett2013-01-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@113 ff385933-4943-42dc-877b-ffc776028de6
* Correct indexing erroreschnett2012-10-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@110 ff385933-4943-42dc-877b-ffc776028de6
* Call isinf instead of isfiniteeschnett2012-10-23
| | | | | | | Also simplify code that outputs error messages git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@109 ff385933-4943-42dc-877b-ffc776028de6
* Use isnan wrappers that are not optimised awayeschnett2012-10-22
| | | | | | | | | | Call C isnan wrappers instead of calling isnan directly; this ensures that isnan is not optimised away. Simplify logic. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@108 ff385933-4943-42dc-877b-ffc776028de6
* Correct spelling error in HAVE_ISNANeschnett2012-10-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@107 ff385933-4943-42dc-877b-ffc776028de6
* fix use of restriction mask for grid arrays and scalarsrhaas2012-10-01
| | | | | | | | since they don't actually use CarpetReduce::weight it should be ignored even for ignore_restrited_points. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@106 ff385933-4943-42dc-877b-ffc776028de6
* Use namespace instead of static declarationseschnett2012-07-09
| | | | | | | | Use a namespace instead of static declarations, so that name resolution in the template works. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@105 ff385933-4943-42dc-877b-ffc776028de6
* use OpenMP during NaN checkrhaas2012-07-05
| | | | | | | this has the side effect of converting the source to C++ and using a C++ template for the CHECK_NAN macro. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@104 ff385933-4943-42dc-877b-ffc776028de6
* Add options to use restriction mask to ignore unused points, output morerhaas2012-07-05
| | | | | | information about the failed points git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@103 ff385933-4943-42dc-877b-ffc776028de6
* reduce nan mask in level moderhaas2012-03-27
| | | | | | | | | The previous local reduction did not quite work if a process has more than one component of the grid, and deadlocks if processes have different numbers of components. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@101 ff385933-4943-42dc-877b-ffc776028de6
* Bugfix: reset NaN counter at INITIAL/PRESTEP in global mode.tradke2008-11-24
| | | | | | | | Before it was scheduled at POSTSTEP in level mode, and hence called too often to trigger NaNChecker output when a NaN was found on coarse refinement levels. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@85 ff385933-4943-42dc-877b-ffc776028de6
* Export routines CheckVarsForNaN and SetVarsToNaN as aliased functions.schnetter2008-09-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@84 ff385933-4943-42dc-877b-ffc776028de6
* decrease warning level from 2 to 1 when printing the locations of NaNs/Infstradke2007-04-27
| | | | | | | in verbose mode git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@83 ff385933-4943-42dc-877b-ffc776028de6
* Bugfix for periodic checking for NaNs: NaNChecker::action_if_found was ignoredtradke2006-01-30
| | | | | | | if NaNChecker::out_nanmask was set to "no". git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@80 ff385933-4943-42dc-877b-ffc776028de6
* Encode only those grid functions in NaNChecker::NaNmask for which NaNs were ↵tradke2005-02-07
| | | | | | found. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@75 ff385933-4943-42dc-877b-ffc776028de6
* Add missing #include <stddef.h> and #include <stdio.h> statements.schnetter2004-12-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@74 ff385933-4943-42dc-877b-ffc776028de6
* Now that CarpetIOHDF5 also accepts option strings in group/variable names,tradke2004-07-07
| | | | | | | | switch back to the old scheme of always outputting the NaNmask with the "{downsample={1 1 1}" options string. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@71 ff385933-4943-42dc-877b-ffc776028de6
* Use curly braces for the options string in the varname argument for ↵tradke2004-07-07
| | | | | | CCTK_OutputVarAsByMethod(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@70 ff385933-4943-42dc-877b-ffc776028de6
* Disable downsampling again if PUGH is active.schnetter2004-07-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@68 ff385933-4943-42dc-877b-ffc776028de6
* Remove no-op downsampling description. It is also not supported byschnetter2004-07-02
| | | | | | | the API. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@67 ff385933-4943-42dc-877b-ffc776028de6
* Use DECLARE_CCTK_ARGUMENTS instead of CCTK_VarDataPtr.schnetter2004-06-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@65 ff385933-4943-42dc-877b-ffc776028de6
* Split the actual checking for NaNs and the output of the NaN mask and actiontradke2004-06-22
| | | | | | | | | | handling into two routines to make the NaNChecker work with Carpet: the checking is now called local mode (on each component individually), whereas the output and action handling takes place in level mode. There is also a level-mode routine to initialize the NaNsFound counter to 0. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@64 ff385933-4943-42dc-877b-ffc776028de6
* Remove configuration check for isnan(), and make NaNChecker work (doschnetter2004-04-10
| | | | | | | nothing) when isnan() is not there git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@60 ff385933-4943-42dc-877b-ffc776028de6
* Use $(error) instead of an unsatisfied dependency to reportschnetter2004-03-10
| | | | | | | configuration errors. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@58 ff385933-4943-42dc-877b-ffc776028de6
* Initialise NaNmask pointer when called from another thorn.schnetter2004-03-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@57 ff385933-4943-42dc-877b-ffc776028de6
* Fix comment.schnetter2004-03-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@56 ff385933-4943-42dc-877b-ffc776028de6
* Allow passing a NULL pointer as action, as is described in the documentation.schnetter2004-03-03
| | | | | | | Fix detecting the variable type. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@55 ff385933-4943-42dc-877b-ffc776028de6
* Change the way in which pointers are passed to and from Fortran.schnetter2003-10-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@51 ff385933-4943-42dc-877b-ffc776028de6
* NaNChecker_CheckVarsForNaN() can be called mulitple times for the sametradke2003-10-08
| | | | | | | variable during the same timestep. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@50 ff385933-4943-42dc-877b-ffc776028de6
* Fixed grdoc for NaNChecker_CheckVarsForNaN() which had the error return codestradke2003-10-08
| | | | | | | in wrong order. Thanks to Ian for spotting this. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@49 ff385933-4943-42dc-877b-ffc776028de6
* Need to reduce the NaN count values on all processors if NaNmask output wastradke2003-07-25
| | | | | | | requested. Otherwise CCTK_OutputVarAsByMethod() would deadlock. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@47 ff385933-4943-42dc-877b-ffc776028de6
* Change to CCTK_MaxTimeLevelsallen2003-07-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@46 ff385933-4943-42dc-877b-ffc776028de6
* Fix a memory leak in PrintWarning().tradke2003-07-08
| | | | | | | This closes PR CactusUtils/1558. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@45 ff385933-4943-42dc-877b-ffc776028de6
* Disabled the NaNmask location feature if the NaNChecker was called directlytradke2003-06-19
| | | | | | | | | | | | by another thorn via its NaNChecker_CheckVarsForNaN() API. Only remember and check the last call to the periodically scheduled NaNChecker() routine if the output of the NaNmask was requested. This restriction is just implied by the invoked I/O method which can output a variable only once per iteration. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@44 ff385933-4943-42dc-877b-ffc776028de6
* Fix NaNChecker_CheckVarsForNaN() so that it doesn't call CCTK_Equals() ontradke2003-06-19
| | | | | | | the 'action_if_found' parameter if passed as a NULL pointer. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@43 ff385933-4943-42dc-877b-ffc776028de6
* Forgot to call CCTK_TerminateNext() when NaNChecker::action_if_found = ↵tradke2003-06-17
| | | | | | "terminate" was set. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@42 ff385933-4943-42dc-877b-ffc776028de6
* Added steerable INTEGER parameter NaNChecker::check_after to specify antradke2003-06-17
| | | | | | | iteration number when to start checking for NaNs. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@41 ff385933-4943-42dc-877b-ffc776028de6
* Added an integer grid function NaNChecker::NaNmask which is used as a bitmasktradke2003-06-12
| | | | | | | | | | to mark locations of NaNs found in grid functions. The mask is output as an HDF5 file and can then be visualized in OpenDX. Setting the mask and outputting it is activated by default. It can be switched off with NaNChecker::out_NaNmask = "no". git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@39 ff385933-4943-42dc-877b-ffc776028de6
* Enclose function prototypes in '#ifdef __cplusplus' block.tradke2003-04-07
| | | | | | | This closes PR CactusUtils/1466. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@38 ff385933-4943-42dc-877b-ffc776028de6
* Fixed bug in reporting the coordinate values.allen2002-09-01
| | | | | | | | Implemented verbose parameter instead of level 2 warnings for the coordinate values, now you put nanchecker::verbose = "all" to see these. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@35 ff385933-4943-42dc-877b-ffc776028de6
* Fixed wrong number of arguments to CCTK_VWarn().tradke2002-06-10
| | | | | | | This closes PR CactusUtils/1096. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@32 ff385933-4943-42dc-877b-ffc776028de6
* Check for valid values passed in the 'check_for' parameter of the API.tradke2002-03-11
| | | | | | | | | | A warning is issued for invalid values, and the behaviour falls back to 'check for both Inf and NaN values'. Closes PR CactusUtils/925. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@27 ff385933-4943-42dc-877b-ffc776028de6
* Added a new parameter 'NaNChecker::check_for' by which you can choose whethertradke2002-03-08
| | | | | | | | | | to check for NaN and/or infinite values (default is check for both). This is only evaluated if finite(3) is available. Sorry for changing the API again. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@26 ff385933-4943-42dc-877b-ffc776028de6
* Fixing some logic errors which meant that variables without storage wereallen2001-12-27
| | | | | | | being nanchecked git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@21 ff385933-4943-42dc-877b-ffc776028de6
* Put the 'int *ierror' argument as the first one in fortran wrappers as thistradke2001-12-11
| | | | | | | | is Cactus coding convention. Closes PR CactusUtils/861. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@19 ff385933-4943-42dc-877b-ffc776028de6
* Added API routine to initialize variables to NaN values.tradke2001-12-10
| | | | | | | | | Closes CactusUtils/855. Also slightly changed the API again. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@18 ff385933-4943-42dc-877b-ffc776028de6
* Added C and Fortran API to invoke the NaNChecker from other code directly.tradke2001-12-06
| | | | | | | | | See the ThornGuide for details. This closes Cactus/794. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@16 ff385933-4943-42dc-877b-ffc776028de6
* Issue an additional level 1 warning before the NaNChecker will terminatetradke2001-06-13
| | | | | | | | or abort the simulation. Closes PR Thorns/717. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@14 ff385933-4943-42dc-877b-ffc776028de6
* Check for availability of isnan(3) at configure time. Exit immediatelytradke2001-05-28
| | | | | | | with an appropriate error message if it's not there. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@13 ff385933-4943-42dc-877b-ffc776028de6