Skip to content

Commit

Permalink
chore: Update header guard names in fatrop code files
Browse files Browse the repository at this point in the history
  • Loading branch information
lvanroye committed Nov 22, 2024
1 parent 5c4b4ee commit 21e92cb
Show file tree
Hide file tree
Showing 37 changed files with 111 additions and 111 deletions.
6 changes: 3 additions & 3 deletions fatrop/auxiliary/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef COMMONINCLUDED
#define COMMONINCLUDED
#ifndef __fatrop_auxiliary_common_hpp__
#define __fatrop_auxiliary_common_hpp__
#include <cassert>
#if DEBUG
#define DBGASSERT(assertion) assert(assertion);
Expand All @@ -31,4 +31,4 @@ namespace fatrop
bool CompareLessEqual(double lhs, double rhs);
bool CompareLessEqual(double lhs, double rhs, double ref);
} // namespace fatrop
#endif // COMMONINCLUDED
#endif // __fatrop_auxiliary_common_hpp__
6 changes: 3 additions & 3 deletions fatrop/auxiliary/DynamicLib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef DYNAMICLIBINCLUDED
#define DYNAMICLIBINCLUDED
#ifndef __fatrop_auxiliary_DynamicLib_hpp__
#define __fatrop_auxiliary_DynamicLib_hpp__
#include <dlfcn.h>
#include <string>
namespace fatrop
Expand All @@ -31,4 +31,4 @@ namespace fatrop
};

}; // namespace fatrop
#endif // DYNAMICLIBINCLUDED
#endif // __fatrop_auxiliary_DynamicLib_hpp__
6 changes: 3 additions & 3 deletions fatrop/auxiliary/FatropOptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROPOPTIONSINCLUDED
#define FATROPOPTIONSINCLUDED
#ifndef __fatrop_auxiliary_fatropoptions_hpp__
#define __fatrop_auxiliary_fatropoptions_hpp__
#include <string>
namespace fatrop
{
Expand Down Expand Up @@ -65,4 +65,4 @@ namespace fatrop
double upper_bound_;
};
} // namespace fatrop
#endif
#endif // __fatrop_auxiliary_fatropoptions_hpp__
6 changes: 3 additions & 3 deletions fatrop/auxiliary/FatropVector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROP_VECTOR_INCLUDED
#define FATROP_VECTOR_INCLUDED
#ifndef __fatrop_auxiliary_FatropVector_hpp__
#define __fatrop_auxiliary_FatropVector_hpp__
#include <vector>
#include <assert.h>
#include <utility>
Expand Down Expand Up @@ -140,4 +140,4 @@ namespace fatrop
}
} // namespace fatrop

#endif // FATROP_VECTOR_INCLUDED
#endif // __fatrop_auxiliary_FatropVector_hpp__
6 changes: 3 additions & 3 deletions fatrop/auxiliary/LinearAlgebra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* This file contains some interface classes for use in linear algebra.
*
*/
#ifndef FATROP_LA_INCLUDED
#define FATROP_LA_INCLUDED
#ifndef __fatrop_auxiliary_LinearAlgebra_hpp__
#define __fatrop_auxiliary_LinearAlgebra_hpp__
#include <iostream>
#include "fatrop/auxiliary/Common.hpp"

Expand Down Expand Up @@ -85,4 +85,4 @@ namespace fatrop
};
} // namespace fatrop

#endif // FATROP_LA_INCLUDED
#endif // __fatrop_auxiliary_LinearAlgebra_hpp__
6 changes: 3 additions & 3 deletions fatrop/auxiliary/VectorUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROPAUXILIARYINCLUDED
#define FATROPAUXILIARYINCLUDED
#ifndef __fatrop_auxiliary_VectorUtils_hpp__
#define __fatrop_auxiliary_VectorUtils_hpp__
#include <vector>
#include "FatropVector.hpp"
#include "fatrop/auxiliary/Common.hpp"
Expand Down Expand Up @@ -51,4 +51,4 @@ namespace fatrop
return res;
}
}; // namespace fatrop
#endif // FATROPAUXINCLUDED
#endif // __fatrop_auxiliary_VectorUtils_hpp__
6 changes: 3 additions & 3 deletions fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROP_BLASFEO_INCLUDED
#define FATROP_BLASFEO_INCLUDED
#ifndef __fatrop_blasfeo_wrapper_LinearAlgebraBlasfeo_hpp__
#define __fatrop_blasfeo_wrapper_LinearAlgebraBlasfeo_hpp__

// macros
extern "C"
Expand Down Expand Up @@ -493,4 +493,4 @@ namespace fatrop
void fatrop_dtrsv_unu(const fatrop_int m, const fatrop_int n, blasfeo_dmat *sA, const fatrop_int ai, const fatrop_int aj, blasfeo_dvec *sx, const fatrop_int xi, blasfeo_dvec *sz, const fatrop_int zi);
void fatrop_dtrsv_utu(const fatrop_int m, blasfeo_dmat *sA, const fatrop_int ai, const fatrop_int aj, blasfeo_dvec *sx, const fatrop_int xi, blasfeo_dvec *sz, const fatrop_int zi);
} // namespace fatrop
#endif // FATROP_BLASFEO_INCLUDED
#endif // __fatrop_blasfeo_wrapper_LinearAlgebraBlasfeo_hpp__
6 changes: 3 additions & 3 deletions fatrop/fatrop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROP_INCLUDED
#define FATROP_INCLUDED
#ifndef __fatrop_fatrop_hpp__
#define __fatrop_fatrop_hpp__
#include "fatrop/ocp/StageOCPApplication.hpp"
// #include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
// #include "fatrop/ocp/OCPKKT.hpp"
Expand All @@ -36,4 +36,4 @@
// #include "fatrop/ocp/FatropOCPBuilder.hpp"

// #include "SparseSolvers/InterfaceMUMPS.hpp"
#endif //FATROP_INCLUDED
#endif //__fatrop_fatrop_hpp__
6 changes: 3 additions & 3 deletions fatrop/function_evaluation/CasadiCodegen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CASADICODEGENINCLUDED
#define CASADICODEGENINCLUDED
#ifndef __fatrop_function_evaluation_CasadiCodegen_hpp__
#define __fatrop_function_evaluation_CasadiCodegen_hpp__
#include <vector>
#include <string>
#include <memory>
Expand Down Expand Up @@ -101,4 +101,4 @@ namespace fatrop

} // fatrop

#endif // CASADICODEGENINCLUDED
#endif // __fatrop_function_evaluation_CasadiCodegen_hpp__
6 changes: 3 additions & 3 deletions fatrop/function_evaluation/FunctionEvaluation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FUNCTIONEVALUATIONINCLUDED
#define FUNCTIONEVALUATIONINCLUDED
#ifndef __fatrop_function_evaluation_FunctionEvaluation_hpp__
#define __fatrop_function_evaluation_FunctionEvaluation_hpp__
#include <vector>
#include <cstring>
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
Expand Down Expand Up @@ -57,4 +57,4 @@ namespace fatrop
~EvalBase(){};
};
}; // namespace fatrop
#endif // FUNCTIONEVALUATIONINCLUDED
#endif // __fatrop_function_evaluation_FunctionEvaluation_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/DuInfEvaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef DUINFEVALINCLUDED
#define DUINFEVALINCLUDED
#ifndef __fatrop_function_evaluation_DuInfEvaluator_hpp__
#define __fatrop_function_evaluation_DuInfEvaluator_hpp__
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
#include "OCPKKT.hpp"
#include "fatrop/auxiliary/Common.hpp"
Expand All @@ -35,4 +35,4 @@ namespace fatrop
FatropVecBF &du_inf);
};
}
#endif // DUINFEVALINCLUDED
#endif // __fatrop_function_evaluation_DuInfEvaluator_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/FatropOCP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPALGINCLUDED
#define OCPALGINCLUDED
#ifndef __fatrop_ocp_FatropOCP_hpp__
#define __fatrop_ocp_FatropOCP_hpp__
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
#include "fatrop/templates/NLPAlg.hpp"
#include "OCPKKT.hpp"
Expand Down Expand Up @@ -158,4 +158,4 @@ namespace fatrop
OCPLSScaler lsscaler_;
};
} // namespace fatrop
#endif // OCPALGINCLUDED
#endif // __fatrop_ocp_FatropOCP_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/FatropOCPBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROPOCPBUILDERINCLUDED
#define FATROPOCPBUILDERINCLUDED
#ifndef __fatrop_ocp_FatropOCPBuilder_hpp__
#define __fatrop_ocp_FatropOCPBuilder_hpp__
#include "fatrop/ocp/OCP.hpp"
#include "fatrop/ocp/FatropOCP.hpp"
#include "fatrop/ocp/OCPAbstract.hpp"
Expand Down Expand Up @@ -49,4 +49,4 @@ namespace fatrop
};
}

#endif // !OCPALGBUILDERINCLUDED
#endif // __fatrop_ocp_FatropOCPBuilder_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPINCLUDED
#define OCPINCLUDED
#ifndef __fatrop_ocp_OCP_hpp__
#define __fatrop_ocp_OCP_hpp__
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
#include "OCPDims.hpp"
#include "fatrop/ocp/OCPKKT.hpp"
Expand Down Expand Up @@ -79,4 +79,4 @@ namespace fatrop
virtual void get_solution(const std::shared_ptr<FatropData> &fatropdata, std::vector<double> &u, std::vector<double> &x) = 0;
};
} // namespace fatrop
#endif // OCPINCLUDED
#endif // __fatrop_ocp_OCP_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPAbstract.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPTEMPLATEINCLUDED
#define OCPTEMPLATEINCLUDED
#ifndef __fatrop_ocp_OCPAbstract_hpp__
#define __fatrop_ocp_OCPAbstract_hpp__
#include "fatrop/ocp/OCPKKT.hpp"
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
#include "fatrop/auxiliary/FatropVector.hpp"
Expand Down Expand Up @@ -251,4 +251,4 @@ namespace fatrop
}
};
}; // namespace fatrop
#endif // OCPTEMPLATEINCLUDED
#endif // __fatrop_ocp_OCPAbstract_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPAdapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPEVALUATORINCLUDED
#define OCPEVALUATORINCLUDED
#ifndef __fatrop_ocp_OCPAdapter_hpp__
#define __fatrop_ocp_OCPAdapter_hpp__
#include "OCPKKT.hpp"
#include "OCPAbstract.hpp"
#include "fatrop/solver/FatropData.hpp"
Expand Down Expand Up @@ -194,4 +194,4 @@ namespace fatrop
};
} // namespace fatrop

#endif // OCPEVALUATORINCLUDED
#endif // __fatrop_ocp_OCPAdapter_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPCInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */

#ifndef OCPCINTERFACEINCLUDED
#define OCPCINTERFACEINCLUDED
#ifndef __fatrop_ocp_OCPCInterface_hpp__
#define __fatrop_ocp_OCPCInterface_hpp__

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -286,4 +286,4 @@ FATROP_SYMBOL_EXPORT void fatrop_ocp_c_destroy(struct FatropOcpCSolver*);
} // extern "C"
#endif

#endif // OCPCINTERFACEINCLUDED
#endif // __fatrop_ocp_OCPAbstract_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPDims.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROP_OCPDIMS_INCLUDED
#define FATROP_OCPDIMS_INCLUDED
#ifndef __fatrop_ocp_OCPDims_hpp__
#define __fatrop_ocp_OCPDims_hpp__
#include "fatrop/auxiliary/FatropVector.hpp"
#include "fatrop/auxiliary/Common.hpp"
#include "fatrop/templates/NLPAlg.hpp"
Expand Down Expand Up @@ -57,4 +57,4 @@ namespace fatrop
const fatrop_int n_stage_params_tot;
};
} // namespace fatrop
#endif // FATROP_OCPDIMS_INCLUDED
#endif // __fatrop_ocp_OCPDims_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPInitializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPINITIALIZERINCLUDED
#define OCPINITIALIZERINCLUDED
#ifndef __fatrop_ocp_OCPInitializer_hpp__
#define __fatrop_ocp_OCPInitializer_hpp__
#include "OCPKKT.hpp"
#include "fatrop/auxiliary/Common.hpp"
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
Expand All @@ -38,4 +38,4 @@ namespace fatrop
FatropVecBF &s);
};
} // namespace fatrop
#endif // OCPINITIALIZERINCLUDED
#endif // __fatrop_ocp_OCPInitializer_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPKKT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef FATROP_OCP_KKT_INCLUDED
#define FATROP_OCP_KKT_INCLUDED
#ifndef __fatrop_ocp_OCPKKT_hpp__
#define __fatrop_ocp_OCPKKT_hpp__
#include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
#include "OCPDims.hpp"
#include "fatrop/auxiliary/VectorUtils.hpp"
Expand Down Expand Up @@ -66,4 +66,4 @@ namespace fatrop
};

} // namespace fatrop
#endif // FATROP_OCP_KKT_INCLUDED
#endif // __fatrop_ocp_OCPKKT_hpp__
6 changes: 3 additions & 3 deletions fatrop/ocp/OCPLSRiccati.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* You should have received a copy of the GNU Lesser General Public License
* along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
#ifndef OCPLSRICCATIINCLUDED
#define OCPLSRICCATIINCLUDED
#ifndef __fatrop_ocp_OCPLSRiccati_hpp__
#define __fatrop_ocp_OCPLSRiccati_hpp__
#include "OCPKKT.hpp"
#include "OCPLinearSolver.hpp"
#include "fatrop/solver/FatropPrinter.hpp"
Expand Down Expand Up @@ -195,4 +195,4 @@ namespace fatrop
bool diagnostic = false;
};
}; // namespace
#endif // OCPLSRICCATIINCLUDED
#endif // __fatrop_ocp_OCPLSRiccati_hpp__
Loading

0 comments on commit 21e92cb

Please sign in to comment.