Commit 35f140b8 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

calex [FIX]: avoid erroneous ellipsis

The ellipsis output was triggered by any matching integer, which could also be
the number of inversion parameters (m) given in the output. The script now
checks whether it has entered the list of iterations, otherwise it does not
output an ellipsis.
parent 8f0885ab
#!/bin/gawk -f
# this is <calexoutextract.awk>
# ----------------------------------------------------------------------------
# $Id: $
#
# Copyright (c) 2013 by Thomas Forbriger (BFO Schiltach)
#
......@@ -44,6 +43,7 @@
#
# REVISIONS and CHANGES
# 20/12/2013 V1.0 Thomas Forbriger
# 18/10/2016 V1.1 start counting in interation list only
#
# ============================================================================
#
......@@ -85,6 +85,8 @@ BEGIN {
# in case we start a new file (FNR == 1)
# --------------------------------------
FNR == 1 {
hot=1;
ITER=0;
if (PSOUT) {
close (output);
output=sprintf("a2ps -o %s.ps --center-title=%s", FILENAME, FILENAME);
......@@ -98,8 +100,11 @@ FNR == 1 {
# --------------------------------------------------------------
#
$0 ~ FIRSTITERLINE {
if (ITER) { hot=0; }
print "\n .\n .\n .\n" | output;
if (ITER)
{
hot=0;
print "\n .\n .\n .\n" | output;
}
}
#
# ----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment