source: ThirdParty/mpqc_open/src/bin/mpqc/mpqc_extract.h

Candidate_v1.6.1
Last change on this file was fbf005, checked in by Frederik Heber <heber@…>, 8 years ago

HUGE: Extracted libmolecuilder_mpqc that is now linked to poolworker.

  • This stops the problems with MemDebug and mpqc when linking against libLinearAlgebra in debug mode: static global variables in libLinAlg are allocated using MemDebug (prefixed with a checksum) but are deallocated using normal libc's free() on exit. This causes an invalid free() as the ptr given to free points inside the block and not at its start. The problem comes from mpqc's use of own new and delete implementation. I'm guessing its reference counting is the culprit. Hence, we need to separate these two compilations from another in different units/libraries. Therefore, we have split off libmolecuilder_mpqc, .._mpqc_extract and additionally place the MPQCJob::Work() implementation inside libMolecuilderJobs_Work.
  • libmolecuilder_mpqc contains all MPQC's code in mpqc.cc (and linked libraries) that is not the main() function.
  • libmolecuilder_mpqc_extract contains functions that extract results such as energies, forces, charge grids from the obtained mpqc solution. These were added by myself to the mpqc code before.
  • molecuilder_mpqc is then linked against a NoOp .._extract library version. Thereby, it does not use any of the Molecuilder or related libraries and does not come in contact with MemDebug.
  • molecuilder_poolworker however is linked with the full .._extract library and hence performs these extractions.
  • poolworker now executes MPQCJob, MPQCCommandJob, and VMGJob and therefore needs to enforce binding to all of them.
  • TESTS: renamed molecuilder_mpqc.in to molecuilder_poolworker.in.
  • Property mode set to 100644
File size: 335 bytes
Line 
1#ifndef _mpqc_extract_h
2#define _mpqc_extract_h
3
4#ifdef HAVE_CONFIG_H
5#include <scconfig.h>
6#endif
7
8#include <chemistry/molecule/energy.h>
9#include <util/group/pregtime.h>
10
11void extractResults(
12 sc::Ref<sc::MolecularEnergy> &mole,
13 void *_data);
14
15void extractTimings(
16 sc::Ref<sc::RegionTimer> &tim,
17 void *_data);
18
19#endif
Note: See TracBrowser for help on using the repository browser.