Skip to content

EE2: Build and Run with Debug Flags #1579

@danholdaway

Description

@danholdaway

GDASapp needs to build (and run) with certain debug compiler flags:

NCO Standard Stipulates that:

There are four critical targets that must be defined in every makefile. They are all, debug, 
install, and clean. Additionally, a test target is required to run unit tests for libraries and 
utility programs. Example 13 of Appendix A contains an example of each."

The debug target must minimally contain the check all and ftrapuv flags in fortran 
or their equivalent in other accepted languages

So essentially they need us to compile & run with Intel/Fortran with

-ftrapuv -check all -g`

For C++ code we likely need something along the lines of:

-init=snan -check all -g

Note that -ftrapuv can be used in Intel/C++ but may not be as thorough.

We don't need to repeat this with GNU compilers.

Metadata

Metadata

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions