Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ filter=-whitespace/comma # 6027 errors
filter=-whitespace/comments # 881 errors
filter=-whitespace/operators # 5240 errors
filter=-whitespace/parens # 413 error
filter=-whitespace/newline
filter=-whitespace/indent_namespace
filter=-readability/multiline_string
filter=-build/include_subdir # 296 errors
#filter=-whitespace/end_of_line
2 changes: 2 additions & 0 deletions src/dataBlock/dataBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// ***********************************************************************************

#include <algorithm>
#include <memory>
#include <string>
#include "idefix.hpp"
#include "dataBlock.hpp"
#include "fluid.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/dataBlock/dataBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <string>
#include <map>
#include <memory>
#include <cstdio>

#include "idefix.hpp"
#include "grid.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/dataBlock/dataBlockHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <vector>
#include "idefix.hpp"
#include "dataBlockHost.hpp"
#include "fluid.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/dataBlock/dumpToFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <string>
#include <cstdio>
#include "../idefix.hpp"
#include "dataBlock.hpp"
#include "version.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/fluid/boundary/axis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <vector>
#include "axis.hpp"
#include "boundary.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/fluid/checkNan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#ifndef FLUID_CHECKNAN_HPP_
#define FLUID_CHECKNAN_HPP_
#include <iostream>
#include "dataBlock.hpp"
#include "dataBlockHost.hpp"
#include "fluid.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <iostream>
#include <string>
#include <sstream>
#include "idefix.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/global.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#ifndef GLOBAL_HPP_
#define GLOBAL_HPP_
#include <iostream>
#include <string>
#include <vector>
#include "arrays.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/idefix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define IDEFIX_HPP_
#include <fstream>
#include <iostream>
#include <cstdio>
#include <Kokkos_Core.hpp>
// #include <Kokkos_DualView.hpp> // do we still need this?
#ifdef WITH_MPI
Expand Down
1 change: 1 addition & 0 deletions src/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef MACROS_HPP_
#define MACROS_HPP_

#include <cstdio>

#if COMPONENTS == 1
#define EXPAND(a,b,c) a
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>

#include <Kokkos_Core.hpp>

Expand Down
1 change: 1 addition & 0 deletions src/mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <chrono> // NOLINT [build/c++11]
#include <thread> // NOLINT [build/c++11]
#include <utility>
#include <vector>
#include "idefix.hpp"
#include "dataBlock.hpp"

Expand Down
4 changes: 3 additions & 1 deletion src/output/dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <algorithm>
#include <unordered_set>
#if __has_include(<filesystem>)
#include <filesystem>
#include <filesystem> // NOLINT [build/c++17]
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
Expand All @@ -17,6 +17,8 @@
#error "Missing the <filesystem> header."
#endif
#include <iomanip>
#include <string>
#include <cstdio>
#include "dump.hpp"
#include "version.hpp"
#include "dataBlockHost.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/output/dump.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <map>
#include <array>
#if __has_include(<filesystem>)
#include <filesystem>
#include <filesystem> // NOLINT [build/c++17]
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
Expand Down
1 change: 1 addition & 0 deletions src/output/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <string>
#include "output.hpp"
#include "dataBlock.hpp"
#include "fluid.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/output/slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <string>
#include <map>
#include <memory>
#include "slice.hpp"
#include "input.hpp"
#include "physics.hpp"
Expand Down
3 changes: 2 additions & 1 deletion src/output/vtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#include "vtk.hpp"
#include <limits.h>
#include <string>
#include <cstdio>
#include <sstream>
#include <iomanip>
#if __has_include(<filesystem>)
#include <filesystem>
#include <filesystem> // NOLINT [build/c++17]
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
Expand Down
3 changes: 2 additions & 1 deletion src/output/vtk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
#include <string>
#include <map>
#if __has_include(<filesystem>)
#include <filesystem>
#include <filesystem> // NOLINT [build/c++17]
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
error "Missing the <filesystem> header."
#endif
#include <cstdio>
#include "idefix.hpp"
#include "input.hpp"
#include "dataBlock.hpp"
Expand Down
10 changes: 9 additions & 1 deletion src/output/xdmf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
#ifndef OUTPUT_XDMF_HPP_
#define OUTPUT_XDMF_HPP_
#include <string>
#include <filesystem>
#if __has_include(<filesystem>)
#include <filesystem> // NOLINT [build/c++17]
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
error "Missing the <filesystem> header."
#endif
#include <map>
#include "idefix.hpp"
#include "input.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/utils/dumpImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Licensed under CeCILL 2.1 License, see COPYING for more information
// ***********************************************************************************

#include <string>
#include <cstdio>
#include "dumpImage.hpp"
#include "dataBlock.hpp"
#include "idefix.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/utils/npy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <sstream>
#include <cstdint>
#include <cstring>
#include <cstdio>
#include <array>
#include <vector>
#include <stdexcept>
Expand Down