atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
read_mol.c File Reference

Functions to read molecule(s) data in the atomes project file format. More...

#include "global.h"
#include "project.h"
#include "initcoord.h"
#include "submenus.h"
+ Include dependency graph for read_mol.c:

Go to the source code of this file.

Functions

void duplicate_molecule (molecule *new_mol, molecule *old_mol)
 
int read_atom_m (FILE *fp, int s, int a)
 read atom fragment and molecule data
 
int read_this_mol (FILE *fp, molecule *tmp)
 read molecule data
 
int read_mol (FILE *fp)
 read molecule(s) information from file
 

Detailed Description

Functions to read molecule(s) data in the atomes project file format.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file read_mol.c.

Function Documentation

◆ duplicate_molecule()

void duplicate_molecule ( molecule * new_mol,
molecule * old_mol )
extern

◆ read_atom_m()

int read_atom_m ( FILE * fp,
int s,
int a )

read atom fragment and molecule data

Parameters
fpthe file pointer
sthe MD step
athe atom number

Definition at line 55 of file read_mol.c.

◆ read_mol()

int read_mol ( FILE * fp)

read molecule(s) information from file

Parameters
fpthe file pointer

Definition at line 92 of file read_mol.c.

◆ read_this_mol()

int read_this_mol ( FILE * fp,
molecule * tmp )

read molecule data

Parameters
fpthe file pointer
tmpthe molecule to store the data

Definition at line 70 of file read_mol.c.