| # | 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 ){ | |
| – | Removed lines | 
| + | Added lines | 
| < | Changed lines | 
| > | Changed lines |