aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-20 04:36:34 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-20 04:36:34 +0000
commite80fac58cb4bf929d8d09e4bd998c3865118b567 (patch)
tree4ebcbb52617ebf92dc48231a8edf53d581cc69a0 /externals/grill/vasp/source
parent6a2cccf403ac6045d987eb771b5ac904a33b122a (diff)
""
svn path=/trunk/; revision=484
Diffstat (limited to 'externals/grill/vasp/source')
-rw-r--r--externals/grill/vasp/source/obj_imm.cpp2
-rw-r--r--externals/grill/vasp/source/obj_part.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/vasp/source/obj_imm.cpp b/externals/grill/vasp/source/obj_imm.cpp
index 1c324e37..5b98a590 100644
--- a/externals/grill/vasp/source/obj_imm.cpp
+++ b/externals/grill/vasp/source/obj_imm.cpp
@@ -84,7 +84,7 @@ public:
S *dst = imm.Pointer();
const S *src = buf->Pointer();
register int i;
- _DE_LOOP(i,len, ( *(dst++) = *src,src += chns ) )
+ _DE_LOOP(i,len, ( dst[i] = *src,src += chns ) )
Vasp ret(len,Vasp::Ref(imm));
ToOutVasp(0,ret);
diff --git a/externals/grill/vasp/source/obj_part.cpp b/externals/grill/vasp/source/obj_part.cpp
index 2a12536d..2e7044d0 100644
--- a/externals/grill/vasp/source/obj_part.cpp
+++ b/externals/grill/vasp/source/obj_part.cpp
@@ -35,7 +35,7 @@ class vasp_part:
public:
vasp_part(I argc,t_atom *argv):
- part(NULL),parts(0)
+ parts(0),part(NULL)
{
m_part(argc,argv);
@@ -81,7 +81,7 @@ public:
return;
}
- I fr = ref.Frames(),o = 0,f = 0;
+ I fr = ref.Frames(),o = 0;
for(I i = 0; i < parts && (fr < 0 || fr); ++i) {
I p = part[i];
if(fr >= 0) { p = min(p,fr); fr -= p; }