| 
    NAMD
    
   | 
 
#include "largefiles.h"#include <string.h>#include <stdlib.h>#include "InfoStream.h"#include "IMDOutput.h"#include "Output.h"#include "dcdlib.h"#include "strlib.h"#include "Molecule.h"#include "Node.h"#include "Parameters.h"#include "PDB.h"#include "SimParameters.h"#include "Vector.h"#include "structures.h"#include "MStream.h"#include "Communicate.h"#include "PatchMap.h"#include "PatchMap.inl"#include "ScriptTcl.h"#include "Lattice.h"#include "DataExchanger.h"#include <fcntl.h>#include <sys/stat.h>#include "PatchData.h"#include "Debug.h"Go to the source code of this file.
Macros | |
| #define | PATHSEPSTR "/" | 
| #define | MKDIR(X) mkdir(X,0777) | 
| #define | NAMD_open NAMD_open64 | 
| #define | NAMD_write NAMD_write64 | 
| #define | NAMD_close NAMD_close64 | 
| #define | O_LARGEFILE 0x0 | 
| #define | MIN_DEBUG_LEVEL 3 | 
| #define | seek_dcdfile NAMD_seek | 
| #define | namdMyNode Node::Object() | 
| #define | simParams simParameters | 
| #define | pdbData pdb | 
| #define | RAD2DEG 180.0/3.14159265359 | 
Functions | |
| int | NAMD_open (const char *fname) | 
| void | NAMD_write (int fd, const char *buf, size_t count, const char *errmsg="NAMD_write64") | 
| void | NAMD_close (int fd, const char *fname) | 
| static void | lattice_to_unitcell (const Lattice *lattice, double *unitcell) | 
| template<class xVector , class xDone > | |
| void | wrap_coor_int (xVector *coor, Lattice &lattice, xDone *done) | 
| template<class xVector , class xDone > | |
| void | wrap_coor_int_dcd_selection (xVector *coor, Lattice &lattice, xDone *done, int index) | 
| void | wrap_coor_dcd_selection (Vector *coor, Lattice &lattice, double *done, int index) | 
| void | wrap_coor_dcd_selection (FloatVector *coor, Lattice &lattice, float *done, int index) | 
| void | wrap_coor (Vector *coor, Lattice &lattice, double *done) | 
| void | wrap_coor (FloatVector *coor, Lattice &lattice, float *done) | 
Variables | |
| static const short | maxDCD =257 | 
| #define NAMD_close NAMD_close64 | 
Definition at line 53 of file Output.C.
Referenced by ofstream_namd::close().
| #define namdMyNode Node::Object() | 
Definition at line 130 of file Output.C.
Referenced by Output::recvReplicaDcdData(), and Output::replicaDcdSelectInit().
| #define O_LARGEFILE 0x0 | 
Definition at line 56 of file Output.C.
Referenced by NAMD_open().
| #define simParams simParameters | 
Definition at line 131 of file Output.C.
Referenced by HomePatch::addForceToMomentum(), HomePatch::addForceToMomentum3(), HomePatch::addVelocityToPosition(), LdbCoordinator::barrier(), HomePatch::boxClosed(), Molecule::build_gridforce_params(), HomePatch::buildRattleList(), HomePatch::buildRattleList_SOA(), ComputePmeMgr::chargeGridSubmitted(), CudaPmeOneDevice::checkPatchLevelLatticeCompatibilityAndComputeOffsets(), ComputeCylindricalBC::ComputeCylindricalBC(), OneFourNbTholeElem::computeForce(), AngleElem::computeForce(), ImproperElem::computeForce(), CrosstermElem::computeForce(), DihedralElem::computeForce(), TholeElem::computeForce(), AnisoElem::computeForce(), ExclElem::computeForce(), BondElem::computeForce(), GromacsPairElem::computeForce(), ComputeFullDirect::ComputeFullDirect(), ComputeLCPO::ComputeLCPO(), ComputeMsm::ComputeMsm(), ComputePme::ComputePme(), ComputeRestraints::ComputeRestraints(), ComputeSphericalBC::ComputeSphericalBC(), ComputeStir::ComputeStir(), ComputeTclBC::ComputeTclBC(), Output::coordinate(), Output::coordinateNeeded(), ComputeMgr::createComputes(), ComputeCUDAMgr::createCudaGlobalMaster(), ComputeCUDAMgr::createCudaPmeOneDevice(), LdbCoordinator::createLoadBalancer(), CudaComputeNonbonded::CudaComputeNonbonded(), HomePatch::depositMigration(), CollectionMaster::disposePositions(), ComputeEField::doForce(), ComputeConsTorque::doForce(), ComputeStir::doForce(), ComputeNonbondedPair::doForce(), ComputeNonbondedSelf::doForce(), ComputeGridForce::doForce(), ComputeRestraints::doForce(), HomePatch::doGroupSizeCheck(), HomePatch::doGroupSizeCheck_SOA(), HomePatch::doMarginCheck(), HomePatch::doMarginCheck_SOA(), HomePatch::doPairlistCheck(), ComputeTclBC::doWork(), ComputeGBISser::doWork(), CudaComputeNonbonded::doWork(), dumpbench(), HomePatch::exchangeAtoms(), HomePatch::exchangeCheckpoint(), PmeZPencil::fft_init(), PmeYPencil::fft_init(), PmeXPencil::fft_init(), Output::force(), Output::forceNeeded(), ComputePmeCUDADevice::gatherForce(), HomePatch::gbisComputeAfterP1(), HomePatch::gbisComputeAfterP2(), Molecule::get_fep_bonded_type(), CudaComputeNonbonded::getCurrentReduction(), CudaComputeNonbonded::getDoTable(), ComputeLjPmeSerialMgr::getLJparameters(), CudaComputeNonbonded::getNonbondedCoef(), ComputePmeMgr::gridCalc2(), HomePatch::hardWallDrude(), ComputeCUDAMgr::initialize(), ComputePmeCUDA::initialize(), LjPmeMgr::initialize(), LdbCoordinator::initialize(), GridforceFullMainGrid::initialize(), GridforceFullSubGrid::initialize(), GridforceLiteGrid::initialize(), ComputeMsmMgr::initialize(), ComputePmeMgr::initialize(), ComputePmeCUDADevice::initialize(), ComputePmeMgr::initialize_computes(), ComputePmeMgr::initialize_pencils(), isPmeProcessor(), CudaComputeNonbonded::launchWork(), HomePatch::loweAndersenVelocities(), WorkDistrib::mapComputes(), ComputePmeCUDADevice::mergeForcesOnPatch(), HomePatch::minimize_rattle2(), Molecule::Molecule(), HomePatch::mollyAverage(), HomePatch::mollyMollify(), NamdHybridLB::NamdHybridLB(), GridforceGrid::new_grid(), Molecule::num_deg_freedom(), Molecule::num_fixed_atoms(), Molecule::num_group_deg_freedom(), Parameters::Parameters(), PatchDataSOA_set_buffer(), PatchDataSOA_set_size(), Compute::patchReady(), Patch::positionsReady(), HomePatch::positionsReady(), HomePatch::positionsReady_SOA(), Molecule::print_atoms(), HomePatch::qmSwapAtoms(), HomePatch::rattle1(), HomePatch::rattle1_SOA(), HomePatch::rattle1old(), HomePatch::rattle2(), Parameters::read_ener_table(), Molecule::receive_Molecule(), recursive_bisect_with_curve(), ComputePmeCUDADevice::recvAtoms(), ComputePmeCUDADevice::recvAtomsFromNeighbor(), HomePatch::recvCheckpointLoad(), ComputeMsmSerialMgr::recvCoord(), ComputeExtMgr::recvCoord(), ComputeLjPmeSerialMgr::recvCoord(), ComputeFmmSerialMgr::recvCoord(), ComputeMgr::recvCudaGlobalMasterCreateMsg(), ComputeMgr::recvCudaGlobalMasterRemoveMsg(), ComputeMgr::recvCudaGlobalMasterUpdateMsg(), HomePatch::recvExchangeMsg(), GridforceFullMainGrid::reinitialize(), GridforceLiteGrid::reinitialize(), CudaComputeNonbonded::reSortTileLists(), HomePatch::revert(), ScriptTcl::run(), ComputePmeUtil::select(), ComputeNonbondedUtil::select(), Molecule::send_Molecule(), ComputePmeCUDADevice::sendAtomsToNeighbor(), ComputePmeCUDADevice::sendForcesToNeighbors(), HomePatch::setGBISIntrinsicRadii(), ComputeLjPmeSerialMgr::setLJparameters(), PmeAtomStorage::setupAlch(), ComputePmeCUDAMgr::setupPencils(), NamdHybridLB::splitComputes(), ComputePmeCUDADevice::spreadCharge(), NamdCentLB::Strategy(), CollectionMgr::submitPositions(), ExclElem::submitReductionData(), PmePencilXYZ::submitReductions(), PmePencilZ::submitReductions(), ComputePmeMgr::submitReductions(), CollectionMgr::submitVelocities(), ComputePme::ungridForces(), ComputeMgr::updateLocalComputes4(), Output::velocity(), Output::velocityNeeded(), ReductionMgr::willRequire(), ReductionMgr::willSubmit(), wrap_coor_int(), wrap_coor_int_dcd_selection(), and Controller::write_accelMDG_rest_file().
      
  | 
  static | 
Definition at line 134 of file Output.C.
References Lattice::a(), Lattice::a_p(), Lattice::b(), Lattice::b_p(), Lattice::c(), Lattice::c_p(), and Vector::length().
| void NAMD_close | ( | int | fd, | 
| const char * | fname | ||
| ) | 
| int NAMD_open | ( | const char * | fname | ) | 
Definition at line 63 of file Output.C.
References NAMD_err(), and O_LARGEFILE.
| void NAMD_write | ( | int | fd, | 
| const char * | buf, | ||
| size_t | count, | ||
| const char * | errmsg = "NAMD_write64"  | 
        ||
| ) | 
Definition at line 88 of file Output.C.
References endi(), iout, iWARN(), NAMD_bug(), and NAMD_err().
Definition at line 342 of file Output.C.
References wrap_coor_int().
Referenced by Output::coordinate().
| void wrap_coor | ( | FloatVector * | coor, | 
| Lattice & | lattice, | ||
| float * | done | ||
| ) | 
Definition at line 346 of file Output.C.
References wrap_coor_int().
Definition at line 334 of file Output.C.
References wrap_coor_int_dcd_selection().
Referenced by Output::coordinate().
| void wrap_coor_dcd_selection | ( | FloatVector * | coor, | 
| Lattice & | lattice, | ||
| float * | done, | ||
| int | index | ||
| ) | 
Definition at line 338 of file Output.C.
References wrap_coor_int_dcd_selection().
| void wrap_coor_int | ( | xVector * | coor, | 
| Lattice & | lattice, | ||
| xDone * | done | ||
| ) | 
Definition at line 259 of file Output.C.
References Molecule::get_cluster(), Molecule::get_clusterSize(), Molecule::is_water(), Node::molecule, Molecule::numAtoms, Node::Object(), Node::simParameters, simParams, Lattice::wrap_delta(), and Lattice::wrap_nearest_delta().
Referenced by wrap_coor().
| void wrap_coor_int_dcd_selection | ( | xVector * | coor, | 
| Lattice & | lattice, | ||
| xDone * | done, | ||
| int | index | ||
| ) | 
Definition at line 293 of file Output.C.
References Molecule::get_atom_index_from_dcd_selection(), Molecule::get_cluster(), Molecule::get_clusterSize(), Molecule::get_dcd_selection_index_from_atom_id(), Molecule::get_dcd_selection_size(), Molecule::is_water(), Node::molecule, Node::Object(), Node::simParameters, simParams, Lattice::wrap_delta(), and Lattice::wrap_nearest_delta().
Referenced by wrap_coor_dcd_selection().
 1.8.14