NAMD
Functions
NamdState.C File Reference
#include "InfoStream.h"
#include "common.h"
#include "Molecule.h"
#include "Parameters.h"
#include "SimParameters.h"
#include "ConfigList.h"
#include "PDB.h"
#include "NamdState.h"
#include "Controller.h"
#include "ScriptTcl.h"
#include <unistd.h>
#include <sys/stat.h>
#include "parm.h"
#include "ReadAmberParm.h"
#include "Debug.h"
#include "CompressPsf.h"
#include "PluginIOMgr.h"
#include "BackEnd.h"

Go to the source code of this file.

Functions

void read_binary_coors (char *fname, PDB *pdbobj)
 

Function Documentation

void read_binary_coors ( char *  fname,
PDB pdbobj 
)

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

Definition at line 34 of file NamdOneTools.C.

34  {
35  Vector *newcoords; // Array of vectors to hold coordinates from file
36 
37  // Allocate an array to hold the new coordinates
38  newcoords = new Vector[pdbobj->num_atoms()];
39 
40  // Read the coordinate from the file
41  read_binary_file(fname,newcoords,pdbobj->num_atoms());
42 
43  // Set the coordinates in the PDB object to the new coordinates
44  pdbobj->set_all_positions(newcoords);
45 
46  // Clean up
47  delete [] newcoords;
48 
49 } // END OF FUNCTION read_binary_coors()
Definition: Vector.h:64
void set_all_positions(Vector *)
Definition: PDB.C:331
int num_atoms(void)
Definition: PDB.C:323
void read_binary_file(const char *fname, Vector *data, int n)
Definition: NamdOneTools.C:52