--- trunk/OOPSE/libmdtools/InitializeFromFile.cpp 2003/07/10 19:53:50 589 +++ trunk/OOPSE/libmdtools/InitializeFromFile.cpp 2003/07/10 22:15:53 590 @@ -84,7 +84,7 @@ void InitializeFromFile :: read_xyz( SimInfo* the_simn char *parseErr; int procIndex; double boxMat[9]; - + double theBoxMat3[3][3]; simnfo = the_simnfo; @@ -130,9 +130,12 @@ void InitializeFromFile :: read_xyz( SimInfo* the_simn simError(); } - simnfo->setBoxM( boxMat ); + for(i=0;i<3;i++) + for(j=0;j<3;j++) theBoxMat3[i][j] = boxMat[3*j+i]; + simnfo->setBoxM( theBoxMat3 ); + for( i=0; i < n_atoms; i++){ eof_test = fgets(read_buffer, sizeof(read_buffer), c_in_file); @@ -301,7 +304,11 @@ void InitializeFromFile :: read_xyz( SimInfo* the_simn // last thing last, enable fatalities. painCave.isEventLoop = 0; - simnfo->setBoxM( boxMat ); + + for(i=0;i<3;i++) + for(j=0;j<3;j++) theBoxMat3[i][j] = boxMat[3*j+i]; + + simnfo->setBoxM( theBoxMat3 ); #endif