Permalink
Browse files

Merge pull request #12754 from aeslaughter/vpp-csv-11087

Fixes to VPP latest and final symlinks
  • Loading branch information...
aeslaughter committed Jan 23, 2019
2 parents 4c75a14 + 7e9e65c commit a86c5ed7ac7e53be907c826fabc762311b77c401
@@ -31,12 +31,12 @@ validParams<CSV>()
params.addParam<std::string>("delimiter", ",", "Assign the delimiter (default is ','");
params.addParam<unsigned int>("precision", 14, "Set the output precision");
params.addParam<bool>("create_final_symlink",
true,
false,
"Enable/disable the creation of a _FINAL symlink for vector postprocessor "
"data with 'execute_on' includes 'FINAL'.");
params.addParam<bool>(
"create_latest_symlink",
true,
false,
"Enable/disable the creation of a _LATEST symlink for vector postprocessor data.");

// Suppress unused parameters
@@ -207,7 +207,11 @@ def _filenames(self):
"""

# The list of files from the supplied pattern
filenames = sorted(glob.glob(self.filename))
filenames = []
for fname in sorted(glob.glob(self.filename)):
if fname.endswith('LATEST') or fname.endswith('FINAL'):
continue
filenames.append(fname)

# Remove the "_time.csv" from the list, if it exists
try:
@@ -63,6 +63,6 @@
[./out]
type = CSV
execute_on = 'TIMESTEP_END FINAL'
create_latest_symlink = false
create_final_symlink = true
[../]
[]
@@ -63,6 +63,6 @@
[./out]
type = CSV
execute_on = 'TIMESTEP_END'
create_final_symlink = false
create_latest_symlink = true
[../]
[]

0 comments on commit a86c5ed

Please sign in to comment.