ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/SimInfo.cpp
(Generate patch)

Comparing trunk/OOPSE_old/src/mdtools/libmdCode/SimInfo.cpp (file contents):
Revision 293 by chuckv, Thu Feb 27 21:25:47 2003 UTC vs.
Revision 294 by mmeineke, Thu Mar 6 17:04:09 2003 UTC

# Line 7 | Line 7 | extern "C"{
7   #include "fSimulation.h"
8   #include "simError.h"
9  
10 < extern "C"{
11 <  void wrapsimmod_( void (*wrapFunction)(void (*fSub)( simtype*, int* )));
12 < }
10 > #include <fortranWrappers.hpp>
11  
14 void wrapSimInfo(void (*fSub)( simtype*, int* ));
15
12   SimInfo* currentInfo;
13  
14   SimInfo::SimInfo(){
# Line 24 | Line 20 | SimInfo::SimInfo(){
20    setTemp = 0;
21    thermalTime = 0.0;
22  
23 <  currentInfo = this;
28 <  wrapMe();
23 >  wrapMeSimInfo( this );
24   }
25  
31
32 void SimInfo::wrapMe(){
33
34  wrapsimmod_( wrapSimInfo );
35 }
36
37
26   void SimInfo::refreshSim(){
27  
28    simtype fInfo;
# Line 72 | Line 60 | void wrapSimInfo(void (*fSub)( simtype*, int* )){
60   #endif // is_mpi
61   }
62  
75 void wrapSimInfo(void (*fSub)( simtype*, int* )){
76  
77  currentInfo->setInternal(fSub);
78 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines