diff options
author | schnetter <> | 2004-02-27 09:25:00 +0000 |
---|---|---|
committer | schnetter <> | 2004-02-27 09:25:00 +0000 |
commit | f2fd319f0054426b649f6fea63f67c8ef900b5f7 (patch) | |
tree | 4a8156491409692f463d0d88b9a37d75bbc17f42 | |
parent | 2990236028a0cf2077844bea878571be7e5d44de (diff) |
Add a dummy array element when D==0.
darcs-hash:20040227092523-07bb3-e4cc3ad72fab0773cc5f42d1af3a27cf61d01545.gz
-rw-r--r-- | Carpet/CarpetLib/src/vect.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh index 4d82b6c43..7a76969c7 100644 --- a/Carpet/CarpetLib/src/vect.hh +++ b/Carpet/CarpetLib/src/vect.hh @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.23 2004/02/18 15:10:45 schnetter Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.hh,v 1.24 2004/02/27 10:25:23 schnetter Exp $ #ifndef VECT_HH #define VECT_HH @@ -45,7 +45,7 @@ class vect { // Fields /** Vector elements. */ - T elt[D]; + T elt[D==0 ? 1 : D]; public: |