From f32be3195a9bd719fda2fb96beaf6eca854503e5 Mon Sep 17 00:00:00 2001 From: jiri Date: Tue, 15 Jul 2008 14:28:38 +0000 Subject: [PATCH] *** empty log message *** --- fourindex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fourindex.h b/fourindex.h index 3faa13e..07398b8 100644 --- a/fourindex.h +++ b/fourindex.h @@ -680,12 +680,12 @@ public: const T& operator() (unsigned int i, unsigned int j, unsigned int k, unsigned int l) const; void resize(const int n) {(*this).NRSMat::resize(n*(n+1)/2);}; void putext(int f, T thr=1e-15); - int nbas() const {return (int)sqrt(2*nn);}; + int nbas() const {return (int)sqrt(2*(*this).nrows());}; }; template -fourindex_dense::putext(int f, T thr) +void fourindex_dense::putext(int f, T thr) { T y; for(int i=1; i<=nbas(); ++i) for(int j=1; j<=i; ++j) @@ -698,7 +698,7 @@ for(int i=1; i<=nbas(); ++i) for(int j=1; j<=i; ++j) x.index.indiv.j=j; x.index.indiv.k=k; x.index.indiv.l=l; - if(sizeof(matel4stored) != write(f,&x,sizeof(matel4stored)) + if(sizeof(matel4stored) != write(f,&x,sizeof(matel4stored)) ) laerror("write error in putext"); } }