Changeset 737c47
- Timestamp:
- Jul 26, 2012, 8:49:17 AM (13 years ago)
- Children:
- 5ce17f
- Parents:
- 0eb774e
- Location:
- src/bin/mpqc
- Files:
- 
      - 3 edited
 
 
Legend:
- Unmodified
- Added
- Removed
- 
      src/bin/mpqc/MPQCJob.hr0eb774e r737c47 19 19 #include "JobMarket/Jobs/FragmentJob.hpp" 20 20 21 #include "Jobs/Grid/SamplingGridProperties.hpp" 22 21 23 #include <string> 22 24 … … 34 36 const int _level) : 35 37 FragmentJob(_JobId), 36 inputfile(_inputfile), 37 size(0.), 38 level(0) 38 inputfile(_inputfile) 39 39 {} 40 40 41 virtual ~MPQCJob() {} 41 42 … … 45 46 //!> contents of the input file 46 47 const std::string inputfile; 47 //!> offset of grid 48 double begin[3]; 49 //!> size of grid, i.e. edge length of cubic(!) domain 50 const double size; 51 //!> level, i.e. \f$2^{\text{level}}\f$ grid points per axis 52 const int level; 48 //!> information for how to sample the density 49 const SamplingGridProperties grid; 53 50 54 51 private: … … 57 54 MPQCJob() : 58 55 FragmentJob(JobId::IllegalJob), 59 size(0.),60 level(0)61 56 {} 62 57 … … 68 63 ar & boost::serialization::base_object<FragmentJob>(*this); 69 64 ar & const_cast<std::string &>(inputfile); 70 int i; 71 for (i=0; i<3; ++i) 72 ar & begin[i]; 73 ar & const_cast<double &>(size); 74 ar & const_cast<int &>(level); 65 ar & const_cast<SamplingGridProperties &<(grid); 75 66 } 76 67 }; 
- 
      src/bin/mpqc/Makefiler0eb774e r737c47 32 32 DEFINES += \ 33 33 -DHAVE_JOBMARKET -I/home/heber/packages/JobMarket-1.0.0/include -I/home/heber/workspace_C/JobMarket/build64 -I/home/heber/packages/boost-1.47/include/boost-1_47\ 34 -DHAVE_MPQCDATA -I/home/heber/workspace_C/molecuilder _LinkedCell/build64-jobmarket/include/MoleCuilder34 -DHAVE_MPQCDATA -I/home/heber/workspace_C/molecuilder/build64/include/MoleCuilder 35 35 36 36 XDEF = 37 XLIBS = -L/home/heber/packages/JobMarket-1.0.0/lib -lJobMarketPoolWorker -Wl,-rpath,/home/heber/packages/JobMarket-1.0.0/lib -Wl,-rpath,/home/heber/packages/boost-1.47/lib -L/home/heber/workspace_C/molecuilder _LinkedCell/build64-jobmarket/lib/ -lMolecuilderJobs -Wl,-rpath,/home/heber/workspace_C/molecuilder_LinkedCell/build64-jobmarket/lib37 XLIBS = -L/home/heber/packages/JobMarket-1.0.0/lib -lJobMarketPoolWorker -Wl,-rpath,/home/heber/packages/JobMarket-1.0.0/lib -Wl,-rpath,/home/heber/packages/boost-1.47/lib -L/home/heber/workspace_C/molecuilder/build64/lib/ -lMolecuilderJobs -Wl,-rpath,/home/heber/workspace_C/molecuilder/build64/lib 38 38 ifeq ($(HAVE_SC_SRC_LIB_CHEMISTRY_QC_PSI),yes) 39 39 XDEF += -DHAVE_CHEMISTRY_QC_PSI 
- 
      src/bin/mpqc/mpqc.ccr0eb774e r737c47 1464 1464 Ref<Wavefunction> wfn; 1465 1465 wfn << mole; 1466 ExEnv::out0() << "The number of atomic orbitals: " << wfn->ao_dimension()->n() << endl;1467 ExEnv::out0() << "The AO density matrix is ";1468 wfn->ao_density()->print(ExEnv::out0());1469 ExEnv::out0() << "The natural density matrix is ";1470 wfn->natural_density()->print(ExEnv::out0());1471 ExEnv::out0() << "The Gaussian basis is " << wfn->basis()->name() << endl;1472 ExEnv::out0() << "The Gaussians sit at the following centers: " << endl;1473 for (int nr = 0; nr< wfn->basis()->ncenter(); ++nr) {1474 ExEnv::out0() << nr << " basis function has its center at ";1475 for (int i=0; i < 3; ++i)1476 ExEnv::out0() << wfn->basis()->r(nr,i) << "\t";1477 ExEnv::out0() << endl;1478 }1466 // ExEnv::out0() << "The number of atomic orbitals: " << wfn->ao_dimension()->n() << endl; 1467 // ExEnv::out0() << "The AO density matrix is "; 1468 // wfn->ao_density()->print(ExEnv::out0()); 1469 // ExEnv::out0() << "The natural density matrix is "; 1470 // wfn->natural_density()->print(ExEnv::out0()); 1471 // ExEnv::out0() << "The Gaussian basis is " << wfn->basis()->name() << endl; 1472 // ExEnv::out0() << "The Gaussians sit at the following centers: " << endl; 1473 // for (int nr = 0; nr< wfn->basis()->ncenter(); ++nr) { 1474 // ExEnv::out0() << nr << " basis function has its center at "; 1475 // for (int i=0; i < 3; ++i) 1476 // ExEnv::out0() << wfn->basis()->r(nr,i) << "\t"; 1477 // ExEnv::out0() << endl; 1478 // } 1479 1479 // print the energy 1480 1480 data.energies.total = mole->energy(); … … 1533 1533 data.forces.resize(grad.dim()/3); 1534 1534 for (int j=0;j<grad.dim()/3; ++j) { 1535 data.forces[j].resize(3 );1535 data.forces[j].resize(3, 0.); 1536 1536 } 1537 1537 std::cout << "Gradient of the MolecularEnergy:" << std::endl; … … 1720 1720 } while (test.good()); 1721 1721 // put info how to sample the density into MPQCData 1722 MPQCData data; 1723 data.density.size = size; 1724 data.density.level = level; 1725 for (int i=0;i<3; ++i) 1726 data.density.begin[i] = begin[i]; 1722 MPQCData data(begin, size, level); 1727 1723 // now call work horse 1728 1724 mainFunction(grp, values, output, input, generic_input, in_char_array, argc, argv, data); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
