aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOBasic/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-09-25 21:49:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-09-25 21:49:00 +0000
commit9a37cdd74e1a6cf3bd0cbc97443150c8362b17cc (patch)
tree1c584df18c2efefd4de63b2fb879fb8074b2f963 /Carpet/CarpetIOBasic/src
parent8d86b63555f42d9cc4fbde8ee718eb83be133535 (diff)
CarpetIOBasic: Correct error in calculating column width
darcs-hash:20060925214941-dae7b-68142831eea781216e80ba26c89c5f06e8c48fcb.gz
Diffstat (limited to 'Carpet/CarpetIOBasic/src')
-rw-r--r--Carpet/CarpetIOBasic/src/iobasic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetIOBasic/src/iobasic.cc b/Carpet/CarpetIOBasic/src/iobasic.cc
index 916674950..161671391 100644
--- a/Carpet/CarpetIOBasic/src/iobasic.cc
+++ b/Carpet/CarpetIOBasic/src/iobasic.cc
@@ -325,13 +325,13 @@ namespace CarpetIOBasic {
case 0:
case 3:
{
- size_t const numchars = (width+1)*numcomps*numreds;
+ size_t const numchars = (width+1)*numcomps*mynumreds;
cout << setw(numchars) << setfill('-') << "";
}
break;
case 1:
{
- size_t const numchars = (width+1)*numcomps*numreds-1;
+ size_t const numchars = (width+1)*numcomps*mynumreds-1;
if (fullname.length() > numchars) {
int begin = fullname.length() - (numchars-1);
cout << " *" << fullname.substr(begin);