conv
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
conv [2023/03/10 13:26] – oschuett | conv [2023/11/14 10:49] (current) – [c012] oschuett | ||
---|---|---|---|
Line 56: | Line 56: | ||
===== c007 ===== | ===== c007 ===== | ||
⚠️ '' | ⚠️ '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ===== c008 ===== | ||
+ | ⚠️ '' | ||
+ | |||
+ | ✅ Please don't use [[https:// | ||
+ | |||
+ | See [[https:// | ||
---- | ---- | ||
Line 61: | 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 90: | 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 142: | Line 167: | ||
---- | ---- | ||
+ | |||
+ | ===== c106 ===== | ||
+ | ⚠️ '' | ||
+ | |||
+ | ✅ Please don't call '' | ||
+ | |||
+ | ---- | ||
+ | |||
===== c201 ===== | ===== c201 ===== |
conv.1678454781.txt.gz · Last modified: 2023/03/10 13:26 by oschuett