}
}
- // try again with the suffix appended
- {
- real_name = *path + filename + suffix;
- if (debug > 1)
- deallog << "PathSearch[" << cls << "] trying "
- << real_name << std::endl;
- FILE *fp = fopen(real_name.c_str(), open_mode);
- if (fp != 0)
- {
- if (debug > 0)
- deallog << "PathSearch[" << cls << "] opened "
- << real_name << std::endl;
- fclose(fp);
- return real_name;
- }
- }
+ // try again with the suffix appended, unless there is
+ // no suffix
+ if (suffix != "")
+ {
+ real_name = *path + filename + suffix;
+ if (debug > 1)
+ deallog << "PathSearch[" << cls << "] trying "
+ << real_name << std::endl;
+ FILE *fp = fopen(real_name.c_str(), open_mode);
+ if (fp != 0)
+ {
+ if (debug > 0)
+ deallog << "PathSearch[" << cls << "] opened "
+ << real_name << std::endl;
+ fclose(fp);
+ return real_name;
+ }
+ }
}
AssertThrow(false, ExcFileNotFound(filename, cls));
return std::string("");
DEAL::PathSearch[CC] trying tests
DEAL::PathSearch[CC] trying ../tests
DEAL::PathSearch[CC] 3 directories
+DEAL::PathSearch[CC] trying ../scripts/tests
DEAL::PathSearch[CC] trying ../scripts/tests.h
+DEAL::PathSearch[CC] trying tests
DEAL::PathSearch[CC] trying tests.h
+DEAL::PathSearch[CC] trying ../tests
DEAL::PathSearch[CC] trying ../tests.h
DEAL::PathSearch[CC] opened ../tests.h
DEAL::../tests.h
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.inp
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.inp
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.xda
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.xda
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.dbmesh
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.dbmesh
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.dat
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.dat
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.plt
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.plt
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.nc
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.nc
DEAL::PathSearch[MESH] 2 directories
+DEAL::PathSearch[MESH] trying grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying grid_in_msh_01.2d.msh
+DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d
DEAL::PathSearch[MESH] trying ../bits/grid_in_msh_01.2d.msh
DEAL::PathSearch[MESH] opened ../bits/grid_in_msh_01.2d.msh
DEAL:: $NOD 4 1 0