1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Make compile if HAVE_LIME=0

This commit is contained in:
u37294 2020-05-04 10:26:20 -07:00
parent ff53b231c8
commit 59c51d2c35
3 changed files with 6 additions and 3 deletions

View File

@ -14,6 +14,7 @@ std::string filestem(const int l)
int main (int argc, char ** argv)
{
#ifdef HAVE_LIME
Grid_init(&argc,&argv);
int64_t threads = GridThread::GetThreads();
@ -42,6 +43,6 @@ int main (int argc, char ** argv)
}
Grid_finalize();
#endif
return EXIT_SUCCESS;
}

View File

@ -2,7 +2,7 @@
#define Benchmark_IO_hpp_
#include <Grid/Grid.h>
#ifdef HAVE_LIME
#define MSG std::cout << GridLogMessage
#define SEP \
"============================================================================="
@ -104,4 +104,5 @@ void readBenchmark(const Coordinate &latt, const std::string filename,
}
#endif //LIME
#endif // Benchmark_IO_hpp_

View File

@ -8,6 +8,7 @@ using namespace Grid;
int main (int argc, char ** argv)
{
#ifdef HAVE_LIME
std::vector<std::string> dir;
unsigned int Ls;
bool rb;
@ -73,6 +74,6 @@ int main (int argc, char ** argv)
}
Grid_finalize();
#endif
return EXIT_SUCCESS;
}