Skip to content

Split C++ functions into individual cpp and header files #224

@nanxstats

Description

@nanxstats

Currently, all C++ functions are organized in a single file gridpts_h1_hupdate.cpp. This is suboptimal for scaling up the C++ code base. To improve reusability, we should:

  • Split it into different .cpp files, one for each function.
  • Create an .h header files for each .cpp file, with "include guard" (#ifndef, #define, and #endif) and the function declaration.
  • Use other functions in .cpp files with statements like #include "gridpts.h".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions