Changeset e9a571
- Timestamp:
- Jul 10, 2012, 1:15:51 PM (13 years ago)
- Children:
- ec4b04
- Parents:
- 5ef341
- git-author:
- Frederik Heber <heber@…> (07/06/12 20:14:09)
- git-committer:
- Frederik Heber <heber@…> (07/10/12 13:15:51)
- File:
- 
      - 1 edited
 
 - 
          
  src/bin/mpqc/mpqc.cc (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      src/bin/mpqc/mpqc.ccr5ef341 re9a571 1061 1061 } 1062 1062 1063 /** Save the molecule to PDB file. 1064 * 1065 * \param do_pdb whether to save as pdb (1) or not (0) 1066 * \param grp message group 1067 * \param mole molecular energy object 1068 * \param molname name of output file 1069 */ 1070 void saveToPdb( 1071 int do_pdb, 1072 Ref<MessageGrp> &grp, 1073 Ref<MolecularEnergy> &mole, 1074 const char *molname 1075 ) 1076 { 1077 if (do_pdb && grp->me() == 0) { 1078 char *ckptfile = new char[strlen(molname)+5]; 1079 sprintf(ckptfile, "%s.pdb", molname); 1080 ofstream pdbfile(ckptfile); 1081 mole->molecule()->print_pdb(pdbfile); 1082 delete[] ckptfile; 1083 } 1084 } 1085 1063 1086 int 1064 1087 try_main(int argc, char *argv[]) … … 1326 1349 mole->print(ExEnv::out0()); 1327 1350 1328 if (do_pdb && grp->me() == 0) { 1329 ckptfile = new char[strlen(molname)+5]; 1330 sprintf(ckptfile, "%s.pdb", molname); 1331 ofstream pdbfile(ckptfile); 1332 mole->molecule()->print_pdb(pdbfile); 1333 delete[] ckptfile; 1334 } 1335 1351 saveToPdb(do_pdb, grp, mole, molname); 1352 1336 1353 } 1337 1354 else { 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
