22 |
|
|
23 |
|
|
24 |
|
|
25 |
< |
namespace { |
25 |
> |
namespace LJ_NS{ |
26 |
|
|
27 |
|
// Declare the structures that will be passed by the parser and MPI |
28 |
|
|
45 |
|
#endif |
46 |
|
} |
47 |
|
|
48 |
+ |
using namespace LJ_NS; |
49 |
|
|
50 |
|
//**************************************************************** |
51 |
|
// begins the actual forcefield stuff. |
107 |
|
|
108 |
|
ffPath = getenv( ffPath_env ); |
109 |
|
if( ffPath == NULL ) { |
110 |
< |
sprintf( painCave.errMsg, |
110 |
< |
"Error opening the force field parameter file: %s\n" |
111 |
< |
"Have you tried setting the FORCE_PARAM_PATH environment " |
112 |
< |
"vairable?\n", |
113 |
< |
fileName ); |
114 |
< |
painCave.isFatal = 1; |
115 |
< |
simError(); |
110 |
> |
STR_DEFINE(ffPath, FRC_PATH ); |
111 |
|
} |
112 |
|
|
113 |
|
|
268 |
|
if( readLine[0] != '!' ){ |
269 |
|
|
270 |
|
// the parser returns 0 if the line was blank |
271 |
< |
if( parseAtomLJ( readLine, lineNum, info ) ){ |
271 |
> |
if( parseAtom( readLine, lineNum, info ) ){ |
272 |
|
info.ident = identNum; |
273 |
|
headAtomType->add( info );; |
274 |
|
identNum++; |
347 |
|
|
348 |
|
if( currentAtomType->name[0] != '\0' ){ |
349 |
|
isError = 0; |
350 |
< |
newAtype( &(currentAtomType->ident), |
350 |
> |
makeAtype( &(currentAtomType->ident), |
351 |
|
&(currentAtomType->mass), |
352 |
|
&(currentAtomType->epslon), |
353 |
|
&(currentAtomType->sigma), |