- Made test.cpp use variable dataset.

- Started cleanup and restructuring file tree.
This commit is contained in:
François Coppens 2021-02-22 18:18:00 +01:00
parent 2fc4c259dc
commit 7f4483f19e
5 changed files with 3 additions and 4 deletions

2
.gitignore vendored
View File

@ -7,4 +7,4 @@ QMCChem_dataset_test
Slater*
Updates*
tests/test
datasets.hdf5
datasets/datasets.*

View File

@ -10,7 +10,7 @@ program QMCChem_dataset_test
real(c_double), dimension(:,:), allocatable :: Updates
real(c_double), dimension(:,:), allocatable :: S, S_inv, S_inv_trans
call Read_dataset("dataset.dat", &
call Read_dataset("update_cycle_13.dat", &
cycle_id, &
dim, &
n_updates, &

View File

View File

@ -23,7 +23,6 @@ void read_double(H5File file, std::string key, double * data) {
ds.close();
}
int test_cycle(H5File file, int cycle) {
/* Read the data */
@ -77,7 +76,7 @@ int main(int argc, char **argv) {
int cycle = std::stoi(argv[1]);
H5File file(FILE_NAME, H5F_ACC_RDONLY);
bool ok = test_cycle(file, 21);
bool ok = test_cycle(file, cycle);
if (ok) {
std::cerr << "ok -- cycle " << std::to_string(cycle) << std::endl;