Is there a tool to eliminate a variable from an exodus file? #12556
-
I have an exodus file, and I would like to remove a variable from it. Is there a tool shipped with SEACAS that allows it? I looked at My first guess was to use nco tools (ncks, specifically) to remove the variable, but then I would have to
and similarly for elem vars. I figured "maybe someone else already wrote a script for this?". @trilinos/seacas |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can use the
Some documentation is at https://sandialabs.github.io/seacas-docs/sphinx/html/index.html#algebra |
Beta Was this translation helpful? Give feedback.
-
@gsjaardema Is there a way to run this inside a script? That is, can one forward the commands (like |
Beta Was this translation helpful? Give feedback.
-
@bartgol When I needed to automatically verify that thousands of parallel mesh files were not corrupt with the SEACAS #!/bin/bash
for f in *
do
export flag=`explore $f <<< check |& egrep "Database check is complete" | wc -l`
if [ "$flag" -eq "1" ]; then
echo "$f : ok"
else
echo "$f : BAD"
fi
done |
Beta Was this translation helpful? Give feedback.
You can use the
algebra
code to do this. Syntax is:Some documentation is at https://sandialabs.github.io/seacas-docs/sphinx/html/index.html#algebra