Skip to content

Commit

Permalink
EPU: Totally eliminate filesystem suppor for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Feb 16, 2022
1 parent b0c3600 commit 2f865eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions packages/seacas/applications/epu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ IF(NOT __LINUX_COMPILER_PGI)
SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/epu.C
INSTALLABLE
)
target_compile_features(epu PRIVATE cxx_std_17)
IF (TPL_ENABLE_MPI)
TRIBITS_ADD_EXECUTABLE(
pepu
Expand All @@ -39,7 +38,6 @@ IF (TPL_ENABLE_MPI)
COMM mpi
INSTALLABLE
)
target_compile_features(epu PRIVATE cxx_std_17)
target_compile_definitions(pepu PUBLIC SEACAS_HAVE_MPI)
ENDIF()
ENDIF()
Expand Down
15 changes: 0 additions & 15 deletions packages/seacas/applications/epu/EP_SystemInterface.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@
#endif

#if !defined(__SUP_WINDOWS)
#if (__cplusplus >= 201703L)
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <dirent.h>
#define NO_FILESYSTEM_SUPPORT
#endif
#endif

namespace {
Expand Down Expand Up @@ -670,7 +664,6 @@ namespace {
{
glob::glob g(basename + ".*.*");
#if !defined(__SUP_WINDOWS__)
#if defined(NO_FILESYSTEM_SUPPORT)
struct dirent *entry = nullptr;
DIR *dp = nullptr;

Expand All @@ -685,14 +678,6 @@ namespace {
}
}
closedir(dp);
#else
for (const auto &entry : fs::directory_iterator(path)) {
std::string filename = entry.path().filename();
if (glob::glob_match(filename, g)) {
return filename;
}
}
#endif
#endif
return "";
}
Expand Down

0 comments on commit 2f865eb

Please sign in to comment.