ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimState.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/SimState.cpp (file contents):
Revision 670 by mmeineke, Thu Aug 7 21:47:18 2003 UTC vs.
Revision 1167 by tim, Wed May 12 16:38:45 2004 UTC

# Line 1 | Line 1
1 < #include <cstdlib>
2 < #include <cstdio>
1 > #include <iostream>
2  
3 + #include <stdlib.h>
4 + #include <stdio.h>
5 +
6   #include "simError.h"
7   #include "SimState.hpp"
8  
# Line 35 | Line 37 | void SimState::createArrays (int the_nElements) {
37  
38   void SimState::createArrays (int the_nElements) {
39    int i, index3, index9;
40 <  
40 >
41    if( arraysAllocated ){
42  
43      sprintf( painCave.errMsg,
# Line 105 | Line 107 | void SimState::destroyArrays( void ){
107    mu   = NULL;
108    ul   = NULL;
109  
110 +
111    arraysAllocated = false;
112    nElements = 0;
113   }
# Line 116 | Line 119 | void SimState::getAtomPointers( int index,
119                                  double** the_trq,
120                                  double** the_Amat,
121                                  double** the_mu,
122 <                                double** the_ul ){
122 >                                double** the_ul){
123    int index3, index9;
124  
125    if( arraysAllocated ){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines