Skip to content

Commit

Permalink
Merge pull request #46 from equinor/refactor/improve-imports
Browse files Browse the repository at this point in the history
Remove commented out includes
  • Loading branch information
sindre-nistad authored Jan 23, 2024
2 parents 3e4c3c6 + 2ead650 commit 081a556
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ include(cmake/project-is-top-level.cmake)
include(cmake/variables.cmake)
include(cmake/utilities.cmake)

option(FFTW_DEBUG "Flag to add methods for writing the FFT grid to file. Requires Boost" OFF)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(FFTW_DEBUG ON)
# TODO: Move this logic into CMakePresets.json
endif ()

# Which versions of dependencies to use
option(BOOST_VERSION "Configure the specific version of Boost gaussianfft wil be statically linked against")
if (NOT BOOST_VERSION)
Expand All @@ -32,6 +38,9 @@ include_directories(SYSTEM ${Python3_INCLUDE_DIRS})

include(cmake/mkl-fftw.cmake)

if (FFTW_DEBUG)
add_compile_definitions(FFTW_DEBUG)
endif ()
include(cmake/boost.cmake)

# ---- Copy source files ----
Expand Down
1 change: 0 additions & 1 deletion src/gaussfft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <boost/python/numpy.hpp>

//#include <chrono>
#include <iostream>

#include "nrlib/iotools/stringtools.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/nrlib/geometry/unittests/line_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include <nrlib/geometry/line.hpp>

#include <boost/test/unit_test.hpp>
//#include <math.h>
//#include <algorithm>

using namespace NRLib;

Expand Down
1 change: 0 additions & 1 deletion src/nrlib/iotools/fileio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifndef NRLIB_FILEIO_HPP
#define NRLIB_FILEIO_HPP

// #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
Expand Down
2 changes: 1 addition & 1 deletion src/nrlib/iotools/stringtools.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef NRLIB_STRINGTOOLS_HPP
#define NRLIB_STRINGTOOLS_HPP

#include <stdlib.h> // For atoi and atof
#include <cstdlib> // For atoi and atof

#include <string>
#include <iomanip>
Expand Down
3 changes: 0 additions & 3 deletions src/nrlib/random/fractal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include "fractal.hpp"

//#include "../iotools/stringtools.hpp"
//#include "../math/mathutility.hpp"

namespace NRLib {

Fractal::Fractal(double min, double max, double dim)
Expand Down
4 changes: 0 additions & 4 deletions src/nrlib/statistics/kriging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
#include <omp.h>
#endif

////for debug print
//#include <nrlib/surface/regularsurface.hpp>
//#include <nrlib/surface/surfaceio.hpp>

#ifdef PARALLEL
#include <omp.h>
#endif
Expand Down
1 change: 0 additions & 1 deletion src/nrlib/statistics/nodalkrigingdata2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <ostream>
#include <fstream>

//#include "nrlib/iotools/logkit.hpp"
#include "nrlib/iotools/fileio.hpp"

#include "nodalkrigingdata2d.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/nrlib/well/norsarwell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "norsarwell.hpp"
#include "../iotools/stringtools.hpp"
#include "../iotools/fileio.hpp"
//#include "src/definitions.h"

using namespace NRLib;

Expand Down

0 comments on commit 081a556

Please sign in to comment.