Fix small inconsistency in field output subscripts.
While here, don't assert that the number of elements is divisible by 20. Okay'ed by: Kari B. Skjerve
This commit is contained in:
1 parent
fc992da21f
commit
974d665ce3
1 file changed
+2
-2
@@ -339,12 +339,12 @@ namespace Dune
|
||||
os << keyword << '\n';
|
||||
int sz = field.size();
|
||||
//int num_new_zcorn = new_ZCORN_.size();
|
||||
assert(sz%20 == 0);
|
||||
//assert(sz%20 == 0);
|
||||
int num_full_rows=sz/20;
|
||||
int num_extra_entries=sz-num_full_rows*20;
|
||||
for (int i = 0; i < num_full_rows; ++i) {
|
||||
for (int j = 0; j < 20; ++j) {
|
||||
os << " " << field[8*i + j];
|
||||
os << " " << field[20*i + j];
|
||||
}
|
||||
os << '\n';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user