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".
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:.cppfiles, one for each function..hheader files for each.cppfile, with "include guard" (#ifndef,#define, and#endif) and the function declaration..cppfiles with statements like#include "gridpts.h".