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
Next revisionBoth sides next revision
dev:error_handling [2015/09/30 08:22] tmuellerdev:error_handling [2015/11/30 13:29] ibethune
Line 10: Line 10:
 For longer messages one can use these two routines: For longer messages one can use these two routines:
 <code Fortran> <code Fortran>
-   CALL cp_warn(__LOCATION__,"A long warning message "\\+   CALL cp_warn(__LOCATION__,"A long warning message "//
-                "which can span multiple lines and contains "\\&+                "which can span multiple lines and contains "//&
                 "some valuable advice for the user.")                 "some valuable advice for the user.")
  
-   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 advises."     
 </code> </code>
  
 +<note important>
 +Messages from ''CPWARN'' and ''cp_warn'' are only printed on the first MPI-rank.\\ Warnings issued on other ranks are ignored.
 +</note>
  
 ===== Cheat Sheet ===== ===== Cheat Sheet =====
dev/error_handling.txt · Last modified: 2022/08/16 16:02 by oschuett