conv
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| conv [2023/03/14 12:35] – [c008] oschuett | conv [2023/11/14 10:49] (current) – [c012] oschuett | ||
|---|---|---|---|
| Line 71: | Line 71: | ||
| ===== c012 ===== | ===== c012 ===== | ||
| ⚠️ '' | ⚠️ '' | ||
| + | |||
| + | ✅ Please don't writing to stdout directly, but instead use a [[dev: | ||
| + | |||
| + | |||
| + | Printkeys allow the user to [[printkey|control]] the verbosity of the output. | ||
| ---- | ---- | ||
| Line 100: | Line 105: | ||
| <code Fortran> | <code Fortran> | ||
| TYPE foo_type | TYPE foo_type | ||
| + | ! Primitive types. | ||
| | | ||
| | | ||
| | | ||
| | | ||
| - | TYPE(bar_type) | + | |
| - | REAL(dp), DIMENSION(3,3) :: my_array | + | |
| - | | + | |
| - | | + | |
| - | END TYPE foo_type | + | |
| - | TYPE bar_type | + | ! Arrays can also be initialized via broadcasting of a scalar. |
| - | INTEGER | + | |
| - | END TYPE bar_type | + | |
| + | ! Pointers should be nullified. | ||
| + | | ||
| + | TYPE(bar_type), POINTER | ||
| + | |||
| + | ! Derived types can be initialized through their constructor. | ||
| + | | ||
| + | |||
| + | ! Allocatables get automatically nullified. | ||
| + | | ||
| + | |||
| + | ! Allocatables of derived types get auto initialized upon allocation. | ||
| + | TYPE(bar_type), ALLOCATABLE | ||
| + | END TYPE foo_type | ||
| </ | </ | ||
| Line 152: | Line 167: | ||
| ---- | ---- | ||
| + | |||
| + | ===== c106 ===== | ||
| + | ⚠️ '' | ||
| + | |||
| + | ✅ Please don't call '' | ||
| + | |||
| + | ---- | ||
| + | |||
| ===== c201 ===== | ===== c201 ===== | ||
conv.1678797320.txt.gz · Last modified: by oschuett
