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

Comparing trunk/OOPSE/libmdtools/LJFF.cpp (file contents):
Revision 561 by mmeineke, Fri Jun 20 20:29:36 2003 UTC vs.
Revision 941 by gezelter, Tue Jan 13 23:01:43 2004 UTC

# Line 1 | Line 1
1 < #include <cstdlib>
2 < #include <cstdio>
3 < #include <cstring>
1 > #include <stdlib.h>
2 > #include <stdio.h>
3 > #include <string.h>
4  
5   #include <iostream>
6   using namespace std;
# Line 123 | Line 123 | LJFF::LJFF(){
123    char* ffPath_env = "FORCE_PARAM_PATH";
124    char* ffPath;
125    char temp[200];
126  char errMsg[1000];
126  
127    headAtomType = NULL;
128    currentAtomType = NULL;
# Line 249 | Line 248 | void LJFF::readParams( void ){
248    info.last = 1; // initialize last to have the last set.
249                   // if things go well, last will be set to 0
250  
252  int i;
251    int identNum;
252    
253  
# Line 357 | Line 355 | void LJFF::readParams( void ){
355    int isDipole = 0;
356    int isSSD = 0;
357    int isGB = 0;
358 +  int isEAM = 0;
359 +  int isCharge = 0;
360 +  double charge = 0.0;
361    double dipole = 0.0;
362    
363    currentAtomType = headAtomType;
# Line 369 | Line 370 | void LJFF::readParams( void ){
370                   &isSSD,
371                   &isDipole,
372                   &isGB,
373 +                 &isEAM,
374 +                 &isCharge,
375                   &(currentAtomType->epslon),
376                   &(currentAtomType->sigma),
377 +                 &charge,
378                   &dipole,
379                   &isError );
380        if( isError ){
# Line 402 | Line 406 | void LJFF::initializeAtoms( int nAtoms, Atom** the_ato
406    // initialize the atoms
407    
408  
405  Atom* thisAtom;
406
409    for( i=0; i<nAtoms; i++ ){
410      
411      currentAtomType = headAtomType->find( the_atoms[i]->getType() );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines