diff --git a/postprocessing/split_ncvars/split_ncvars.pl b/postprocessing/split_ncvars/split_ncvars.pl index 1f142be3..69fe4600 100755 --- a/postprocessing/split_ncvars/split_ncvars.pl +++ b/postprocessing/split_ncvars/split_ncvars.pl @@ -172,7 +172,8 @@ $var =~ s/^\s+//; $var =~ s/\s+$//; # skip this variable if it does not exist - if ($dump !~ /\t\w+ $var\s+;/) { + # the second clause below is needed for dimensionless variables + if ($dump !~ /\t\w+ $var\(.+\)/ and $dump !~ /\t\w+ $var\s+;/) { print "WARNING: variable $var does not exist ... skipping.\n" if !$Opt{QUIET}; next; }