Skip to content

Commit 26a896c

Browse files
author
Martin D. Weinberg
committed
Added more diagnostics
1 parent d60f5e3 commit 26a896c

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

expui/BiorthBasis.cc

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,14 +2011,21 @@ namespace BasisClasses
20112011
file.createAttribute<std::string>("DiskType",
20122012
HighFive::DataSpace::From(dtype)).write(dtype);
20132013

2014+
std::cout << "---- Cylindrical: writing DiskType <" << dtype
2015+
<< "> to cache file <" << cachename << ">" << std::endl;
2016+
20142017
// Write the md5sum for the Python module
20152018
if (DTYPE == DiskType::python) {
20162019
try {
20172020
std::vector<std::string> pyinfo =
20182021
{pyname, QuickDigest5::fileToHash(pyname + ".py")};
2019-
file.createAttribute<std::vector<std::string>>
2020-
("pythonDiskType",
2021-
HighFive::DataSpace::From(pyinfo)).write(pyinfo);
2022+
2023+
file.createAttribute("pythonDiskType", pyinfo);
2024+
2025+
std::cout << "---- Cylindrical: writing pythonDiskType <" << pyname + ".py"
2026+
<< "> to cache file <" << cachename << ">" << std::endl;
2027+
2028+
20222029
} catch (const std::runtime_error& e) {
20232030
if (myid==0) {
20242031
std::cerr << "Error: " << e.what() << std::endl;
@@ -2041,13 +2048,15 @@ namespace BasisClasses
20412048
try {
20422049
std::vector<std::string> pyinfo =
20432050
{pyproj, QuickDigest5::fileToHash(pyproj + ".py")};
2044-
file.createAttribute<std::vector<std::string>>
2045-
("pythonProjType",
2046-
HighFive::DataSpace::From(pyinfo)).write(pyinfo);
2051+
2052+
file.createAttribute("pythonProjType", pyinfo);
2053+
2054+
std::cout << "---- Cylindrical: writing pythonProjType <" << pyproj + ".py"
2055+
<< "> to cache file <" << cachename << ">" << std::endl;
20472056
} catch (const std::runtime_error& e) {
20482057
if (myid==0) {
20492058
std::cerr << "Error: " << e.what() << std::endl;
2050-
std::cerr << "Can not writine the md5 hash to HDF5" << std::endl;
2059+
std::cerr << "Can not write the md5 hash to HDF5" << std::endl;
20512060
}
20522061
}
20532062
}

src/Cylinder.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,9 +2134,9 @@ void Cylinder::saveDtype()
21342134
try {
21352135
std::vector<std::string> pyinfo =
21362136
{pyname, QuickDigest5::fileToHash(pyname)};
2137-
file.createAttribute<std::string>
2138-
("pythonDiskType",
2139-
HighFive::DataSpace::From(pyinfo)).write(pyinfo);
2137+
2138+
file.createAttribute("pythonDiskType", pyinfo);
2139+
21402140
} catch (const std::runtime_error& e) {
21412141
std::cerr << "Cylinder::saveDtype error: " << e.what() << std::endl;
21422142
std::cerr << "Can not write the md5 hash to HDF5" << std::endl;

0 commit comments

Comments
 (0)