conv
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
conv [2023/04/21 10:03] – 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 | ||
</ | </ | ||
conv.1682071409.txt.gz · Last modified: 2023/04/21 10:03 by oschuett