Page MenuHomec4science

dump_xyz_gz.h
No OneTemporary

File Metadata

Created
Wed, Jun 26, 10:12

dump_xyz_gz.h

/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifdef DUMP_CLASS
DumpStyle(xyz/gz,DumpXYZGZ)
#else
#ifndef LMP_DUMP_XYZ_GZ_H
#define LMP_DUMP_XYZ_GZ_H
#include "dump_xyz.h"
#include <zlib.h>
namespace LAMMPS_NS {
class DumpXYZGZ : public DumpXYZ {
public:
DumpXYZGZ(class LAMMPS *, int, char **);
virtual ~DumpXYZGZ();
protected:
gzFile gzFp; // file pointer for the compressed output stream
virtual void openfile();
virtual void write_header(bigint);
virtual void write_data(int, double *);
virtual void write();
};
}
#endif
#endif
/* ERROR/WARNING messages:
E: Dump xyz/gz only writes compressed files
The dump xyz/gz output file name must have a .gz suffix.
E: Cannot open dump file
Self-explanatory.
*/

Event Timeline