NAMD
Public Member Functions | List of all members
IMDOutput Class Reference

#include <IMDOutput.h>

Public Member Functions

 IMDOutput ()
 
 ~IMDOutput ()
 
void use_imd (GlobalMasterIMD *)
 
void gather_energies (IMDEnergies *energies)
 
void gather_coordinates (int timestep, int N, FloatVector *coords)
 
void set_transrate (int newrate)
 

Detailed Description

Definition at line 20 of file IMDOutput.h.

Constructor & Destructor Documentation

IMDOutput::IMDOutput ( )

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 10 of file IMDOutput.C.

10  {
11  imd = NULL;
12  transrate = 1;
13  ignore = 0;
14 }
IMDOutput::~IMDOutput ( )

Definition at line 16 of file IMDOutput.C.

16  {
17 }

Member Function Documentation

void IMDOutput::gather_coordinates ( int  timestep,
int  N,
FloatVector coords 
)

Definition at line 29 of file IMDOutput.C.

References GlobalMasterIMD::calculate(), GlobalMasterIMD::send_fcoords(), and GlobalMaster::step.

Referenced by Output::coordinate().

29  {
30  if ( ignore ) {
31  imd->step = timestep;
32  imd->calculate();
33  }
34  if (!imd || timestep % transrate) return;
35  imd->send_fcoords(N, coords);
36 }
virtual void calculate()
void send_fcoords(int, FloatVector *)
void IMDOutput::gather_energies ( IMDEnergies energies)

Definition at line 24 of file IMDOutput.C.

References GlobalMasterIMD::send_energies(), and IMDEnergies::tstep.

Referenced by Controller::printEnergies().

24  {
25  if (!imd || energies->tstep % transrate) return;
26  imd->send_energies(energies);
27 }
int32 tstep
Definition: imd.h:27
void send_energies(IMDEnergies *)
void IMDOutput::set_transrate ( int  newrate)
inline

Definition at line 37 of file IMDOutput.h.

Referenced by GlobalMasterIMD::get_vmd_forces().

37 {transrate = newrate; }
void IMDOutput::use_imd ( GlobalMasterIMD g)

Definition at line 19 of file IMDOutput.C.

References GlobalMasterIMD::IMDignore, and GlobalMasterIMD::IMDignoreForces.

Referenced by GlobalMasterIMD::GlobalMasterIMD().

19  {
20  imd = g;
21  ignore = g->IMDignore || g->IMDignoreForces;
22 }

The documentation for this class was generated from the following files: