From 808d0edac600a0a5661f36a306368b9e823d365e Mon Sep 17 00:00:00 2001 From: Chun Shen Date: Sat, 14 Sep 2024 11:05:20 -0400 Subject: [PATCH] fixed the path name for external files --- src/transport_coeffs.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/transport_coeffs.cpp b/src/transport_coeffs.cpp index a3246228..b0c79639 100644 --- a/src/transport_coeffs.cpp +++ b/src/transport_coeffs.cpp @@ -28,11 +28,12 @@ TransportCoeffs::TransportCoeffs(const InitData &Data_in) void TransportCoeffs::read_in_shear_from_file() { - std::string path = "/EOS/shear_1DGen.bin"; + std::string path = "./EOS/shear_1DGen.bin"; std::ifstream shearFile; shearFile.open(path, std::ios::binary); if (!shearFile) { - std::cout << "Can not find the shear viscosity file." << std::endl; + std::cout << "Can not find the shear viscosity file: " + << path << std::endl; exit(1); } TArr_.resize(100); @@ -48,11 +49,12 @@ void TransportCoeffs::read_in_shear_from_file() { void TransportCoeffs::read_in_bulk_from_file() { - std::string path = "/EOS/bulk_1DGen.bin"; + std::string path = "./EOS/bulk_1DGen.bin"; std::ifstream bulkFile; bulkFile.open(path, std::ios::binary); if (!bulkFile) { - std::cout << "Can not find the bulk viscosity file." << std::endl; + std::cout << "Can not find the bulk viscosity file: " + << path << std::endl; exit(1); } TArr_.resize(100);