User Tools

Site Tools


conv

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
conv [2023/06/23 19:10] – [c016] oschuettconv [2026/06/12 09:46] (current) oschuett
Line 71: Line 71:
 ===== c012 ===== ===== c012 =====
 ⚠️ ''Found WRITE statement with hardcoded unit in "${proc}"'' ⚠️ ''Found WRITE statement with hardcoded unit in "${proc}"''
 +
 +✅ Please don't write to stdout directly, but instead use a [[dev:printkey]].
 +
 +
 +Printkeys allow the user to [[printkey|control]] the verbosity of the output.
  
 ---- ----
Line 77: Line 82:
 ⚠️ ''Found DEALLOCATE with STAT argument in "${proc}"'' ⚠️ ''Found DEALLOCATE with STAT argument in "${proc}"''
  
-✅ Please don't ''STAT='' to ''DEALLOCATE'' to ensure that the program stops after a failure.+✅ Please don'pass ''STAT='' to ''DEALLOCATE'' to ensure that the program stops after a failure.
  
 A failed deallocation is always indicative of a bug (e.g. double free or segmentation fault) and the program should not continue afterwards. A failed deallocation is always indicative of a bug (e.g. double free or segmentation fault) and the program should not continue afterwards.
Line 120: Line 125:
    REAL(dp), DIMENSION(:), ALLOCATABLE :: my_alloc    REAL(dp), DIMENSION(:), ALLOCATABLE :: my_alloc
        
-   ! Allocatables of derived types get automatically initialized upon allocation.+   ! Allocatables of derived types get auto initialized upon allocation.
    TYPE(bar_type), ALLOCATABLE         :: my_derived_alloc    TYPE(bar_type), ALLOCATABLE         :: my_derived_alloc
 END TYPE foo_type END TYPE foo_type
- 
-TYPE bar_type 
-   INTEGER                             :: my_int     = -1 
-END TYPE bar_type 
 </code> </code>
  
conv.1687547446.txt.gz · Last modified: by oschuett