User Tools

Site Tools


dev:error_handling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:error_handling [2015/11/30 13:29] ibethunedev:error_handling [2022/08/16 16:02] (current) – typo oschuett
Line 1: Line 1:
 ====== Error Handling ====== ====== Error Handling ======
  
-In CP2K there exist three convenient macros for error handling. They are defined in [[src>cp2k/src/common/cp_common_uses.f90]], and are therefore always available. However, these macros can only be used for **short messages** (approximately less than 7 words), because of Fortran's line length limitation.+In CP2K there exist three convenient macros for error handling. They are defined in [[src>src/base/base_uses.f90]], and are therefore always available. However, these macros can only be used for **short messages** (approximately less than 7 words), because of Fortran's line length limitation.
 <code Fortran> <code Fortran>
    CPWARN("A short warning message")    CPWARN("A short warning message")
Line 15: Line 15:
  
    CALL cp_abort(__LOCATION__,"A long error message "//&    CALL cp_abort(__LOCATION__,"A long error message "//&
-                 "with even more valuable advises."     +                 "with even more valuable advices."     
 </code> </code>
  
dev/error_handling.1448890170.txt.gz · Last modified: 2020/08/21 10:14 (external edit)