Skip to content

Commit

Permalink
Merge pull request #61 from andrsd/issue/60
Browse files Browse the repository at this point in the history
Renaming files
  • Loading branch information
andrsd authored Jul 9, 2024
2 parents 05b7259 + f969df7 commit 59b8d41
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 42 deletions.
13 changes: 0 additions & 13 deletions include/exodusIIcpp.h

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion include/exodusIIcppError.h → include/exodusIIcpp/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "fmt/format.h"
#include "fmt/printf.h"
#include "exodusIIcppException.h"
#include "exception.h"

#define EXODUSIICPP_CHECK_ERROR(err) \
exodusIIcpp::internal::check_error(err, __PRETTY_FUNCTION__, __FILE__, __LINE__)
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions include/exodusIIcpp/exodusIIcpp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#pragma once

#include "element_block.h"
#include "enums.h"
#include "error.h"
#include "exception.h"
#include "file.h"
#include "filesystem.h"
#include "node_set.h"
#include "side_set.h"
12 changes: 6 additions & 6 deletions include/exodusIIcppFile.h → include/exodusIIcpp/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

#include <vector>
#include <map>
#include "exodusIIcppElementBlock.h"
#include "exodusIIcppEnums.h"
#include "exodusIIcppError.h"
#include "exodusIIcppNodeSet.h"
#include "exodusIIcppSideSet.h"
#include "exodusIIcppFilesystem.h"
#include "element_block.h"
#include "enums.h"
#include "error.h"
#include "node_set.h"
#include "side_set.h"
#include "filesystem.h"

namespace exodusIIcpp {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 8 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
add_library(
${PROJECT_NAME}
${EXODUSIICPP_LIBRARY_TYPE}
exodusIIcppElementBlock.cpp
exodusIIcppException.cpp
exodusIIcppFile.cpp
exodusIIcppNodeSet.cpp
exodusIIcppSideSet.cpp
element_block.cpp
exception.cpp
file.cpp
node_set.cpp
side_set.cpp
)
if(CMAKE_PROJECT_NAME STREQUAL "exodusIIcpp")
target_code_coverage(${PROJECT_NAME})
Expand All @@ -23,9 +23,10 @@ set_target_properties(
target_include_directories(
${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
$<INSTALL_INTERFACE:include>
PRIVATE
${PROJECT_SOURCE_DIR}/include
$<BUILD_INTERFACE:${EXODUSII_INCLUDE_DIR}>
$<BUILD_INTERFACE:${NETCDF_INCLUDE_DIRS}>
)
Expand Down Expand Up @@ -65,7 +66,7 @@ install(

install(
DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exodusIIcpp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h"
)

Expand Down
4 changes: 2 additions & 2 deletions src/exodusIIcppElementBlock.cpp → src/element_block.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#include "exodusIIcppElementBlock.h"
#include "exodusIIcppException.h"
#include "exodusIIcpp/element_block.h"
#include "exodusIIcpp/exception.h"

namespace exodusIIcpp {

Expand Down
2 changes: 1 addition & 1 deletion src/exodusIIcppException.cpp → src/exception.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#include "exodusIIcppException.h"
#include "exodusIIcpp/exception.h"

namespace exodusIIcpp {

Expand Down
2 changes: 1 addition & 1 deletion src/exodusIIcppFile.cpp → src/file.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#include "exodusIIcppFile.h"
#include "exodusIIcpp/file.h"
#include "exodusII.h"
#include "fmt/printf.h"
#include <cassert>
Expand Down
4 changes: 2 additions & 2 deletions src/exodusIIcppNodeSet.cpp → src/node_set.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#include "exodusIIcppNodeSet.h"
#include "exodusIIcppException.h"
#include "exodusIIcpp/node_set.h"
#include "exodusIIcpp/exception.h"

namespace exodusIIcpp {

Expand Down
4 changes: 2 additions & 2 deletions src/exodusIIcppSideSet.cpp → src/side_set.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: 2022 David Andrs <[email protected]>
// SPDX-License-Identifier: MIT

#include "exodusIIcppSideSet.h"
#include "exodusIIcppException.h"
#include "exodusIIcpp/side_set.h"
#include "exodusIIcpp/exception.h"

namespace exodusIIcpp {

Expand Down
2 changes: 1 addition & 1 deletion test/ElementBlock_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gmock/gmock.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"

using namespace exodusIIcpp;

Expand Down
2 changes: 1 addition & 1 deletion test/Error_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gmock/gmock.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"

using namespace exodusIIcpp;

Expand Down
2 changes: 1 addition & 1 deletion test/File_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gmock/gmock.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"
#include "config.h"

using namespace exodusIIcpp;
Expand Down
2 changes: 1 addition & 1 deletion test/NodeSet_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gmock/gmock.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"
#include <stdexcept>

using namespace exodusIIcpp;
Expand Down
2 changes: 1 addition & 1 deletion test/SideSet_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gmock/gmock.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"
#include <stdexcept>

using namespace exodusIIcpp;
Expand Down
2 changes: 1 addition & 1 deletion tools/exo2yml/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "cxxopts/cxxopts.hpp"
#include "fmt/printf.h"
#include "yaml-cpp/yaml.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"
#include <fstream>

exodusIIcpp::File
Expand Down
2 changes: 1 addition & 1 deletion tools/yml2exo/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "cxxopts/cxxopts.hpp"
#include "fmt/printf.h"
#include "yaml-cpp/yaml.h"
#include "exodusIIcpp.h"
#include "exodusIIcpp/exodusIIcpp.h"
#include "common/error.h"

YAML::Node
Expand Down

0 comments on commit 59b8d41

Please sign in to comment.