ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/io/Globals.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/io/Globals.cpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 1957 by tim, Tue Jan 25 17:45:23 2005 UTC

# Line 112 | Line 112
112   #define G_THERM_INT_LAMBDA  50
113   #define G_THERM_INT_K       51
114   #define G_FORCEFIELD_VARIANT 52
115 <
115 > #define G_FORCEFIELD_FILENAME 53
116   Globals::Globals(){
117    initalize();
118   }
# Line 196 | Line 196 | void Globals::initalize(){
196    addHash( "thermodynamicIntegrationLambda",       G_THERM_INT_LAMBDA);
197    addHash( "thermodynamicIntegrationK",            G_THERM_INT_K);
198    addHash( "forceFieldVariant",                    G_FORCEFIELD_VARIANT);
199 <
199 >  addHash( "forceFieldFileName",                    G_FORCEFIELD_FILENAME);
200 >  
201    strcpy( mixingRule,"standard");  //default mixing rules to standard.
202    usePBC = 1; //default  periodic boundry conditions to on
203    useRF  = 0;
# Line 253 | Line 254 | void Globals::initalize(){
254    have_thermodynamic_integration_lambda = 0;
255    have_thermodynamic_integration_k = 0;
256    have_forcefield_variant = 0;
257 +  have_forcefield_filename = 0;
258  
259   }
260  
# Line 1735 | Line 1737 | int Globals::globalAssign( event* the_event ){
1737        return 0;
1738        break;      
1739        // add more token cases here.      
1740 +
1741 +    case G_FORCEFIELD_FILENAME:
1742 +      if( the_type == STRING ){
1743 +        strcpy( forcefield_filename, the_event->evt.asmt.rhs.sval );
1744 +        have_forcefield_filename = 1;
1745 +        return 1;
1746 +      }
1747 +      
1748 +      the_event->err_msg =
1749 +        strdup( "Error in parsing meta-data file!\n\tforceFieldFileName was not a string assignment.\n" );
1750 +      return 0;
1751 +      break;      
1752 +      // add more token cases here.      
1753      }
1754    }
1755    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines