Skip to content

Commit

Permalink
fixed the path name for external files
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshen1987 committed Sep 14, 2024
1 parent eeb608b commit 808d0ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/transport_coeffs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 808d0ed

Please sign in to comment.