Skip to content

Commit 65a1b29

Browse files
committed
AsciiDataLayered: remove redundant data_dir
This class is derived from AsciiDataBase that already contains and parses data_directory.
1 parent e4df9ed commit 65a1b29

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

include/aspect/structured_data.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,6 @@ namespace aspect
685685
std::vector<std::unique_ptr<aspect::Utilities::StructuredDataLookup<dim-1>>> lookups;
686686

687687
private:
688-
689-
/**
690-
* Directory in which the data files are present.
691-
*/
692-
std::string data_directory;
693-
694688
/**
695689
* Filenames of data files.
696690
*/

source/structured_data.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,20 +1677,6 @@ namespace aspect
16771677

16781678
prm.enter_subsection (subsection_name);
16791679
{
1680-
prm.declare_entry ("Data directory",
1681-
default_directory,
1682-
Patterns::DirectoryName (),
1683-
"The name of a directory that contains the model data. This path "
1684-
"may either be absolute (if starting with a `/') or relative to "
1685-
"the current directory. The path may also include the special "
1686-
"text `$ASPECT_SOURCE_DIR' which will be interpreted as the path "
1687-
"in which the ASPECT source files were located when ASPECT was "
1688-
"compiled. This interpretation allows, for example, to reference "
1689-
"files located in the `data/' subdirectory of ASPECT. A trailing "
1690-
"slash at the end of the directory path is optional; the plugin "
1691-
"will automatically append a '/' when the parameters are parsed if "
1692-
"it is missing. ");
1693-
16941680
prm.declare_entry ("Data file names",
16951681
default_filename,
16961682
Patterns::List (Patterns::Anything()),
@@ -1719,10 +1705,6 @@ namespace aspect
17191705

17201706
prm.enter_subsection(subsection_name);
17211707
{
1722-
data_directory = Utilities::expand_ASPECT_SOURCE_DIR(prm.get ("Data directory"));
1723-
// ensure directory ends with a slash so callers can safely do data_directory + filename
1724-
if (!data_directory.empty() && data_directory.back() != '/')
1725-
data_directory.push_back('/');
17261708
data_file_names = Utilities::split_string_list(prm.get ("Data file names"), ',');
17271709
interpolation_scheme = prm.get("Interpolation scheme");
17281710
}

0 commit comments

Comments
 (0)