Changes between Initial Version and Version 1 of Ticket #956
- Timestamp:
- 08/31/23 04:35:23 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #956
- Property Resolution → Done
- Property Status new → closed
-
Ticket #956 – Description
initial v1 1 The YAML Parser (**ROMS/Utility/yaml_parser.F**) requires features of the **Fortran 2003** standard and a couple ofelements of the **Fortran 2008** standard, available in modern compilers. In the past, we have reports of Users having issues compiling with older versions of **gfortran** or incomplete implementation of the Object-Oriented Programming (**OOP**) principles from the 2003 standard. Therefore, a standalone program is added (**ROMS/Programs/yaml_parser_test.F**) to test the compilers.1 The **YAML** Parser (**ROMS/Utility/yaml_parser.F**) requires features of the **Fortran 2003** standard and some elements of the **Fortran 2008** standard, available in modern compilers. In the past, we have reports of Users having issues compiling with older versions of **gfortran** or incomplete implementation of the Object-Oriented Programming (**OOP**) principles from the 2003 standard. Therefore, a standalone program is added (**ROMS/Programs/yaml_parser_test.F**) to test the compilers. 2 2 3 3 To compile and link, use the following: … … 18 18 Enter YAML filename: 19 19 }}} 20 The YAML tree dictionary and extraction are written to standard output.20 The YAML tree dictionary and extraction are written to standard output. 21 21 22 22 Examine that program if you are interested in modern **OOP Fortran** code that uses **CLASS** objects, inheritance, and other advanced capabilities. Unfortunately, modern Fortran does not use templates like C++. Maybe they will considered in the future. 23 23 24 For example, for roms_cmesp.yaml.I get:24 For example, for **roms_cmeps.yaml**, I get: 25 25 26 26 {{{
