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