/usr/include/vtk-5.8/VPIC/VPICHeader.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /////////////////////////////////////////////////////////////////////////////
//
// VPICHeader class contains information for a single VPIC
//
/////////////////////////////////////////////////////////////////////////////
#ifndef VPICHeader_h
#define VPICHeader_h
#include "VPICDefinition.h"
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <vtkSystemIncludes.h>
using namespace std;
class VPIC_EXPORT VPICHeader {
public:
VPICHeader();
VPICHeader(FILE* fp);
~VPICHeader();
void PrintSelf(ostream& os, int indent);
int readHeader(FILE* fp);
int parseBoilerPlate(FILE* fp);
void getGridSize(int gridsize[]);
void getGhostSize(int ghostsize[]);
void getOrigin(float origin[]);
void getStep(float step[]);
int getDumpTime() { return this->dumpTime; }
int getNumberOfDimensions() { return this->numberOfDimensions; }
int getTotalRank() { return this->totalRank; }
private:
int rank; // Rank of processor that wrote file
int totalRank; // Total number of processor parts
int version; // Version number
int dumpType; // Field or hydro data
int headerSize; // Number of common bytes
int recordSize; // Number of bytes of data per grid
int numberOfDimensions;
int dumpTime; // Number for this time step
float deltaTime; // Time step difference
int gridSize[DIMENSION]; // Non ghost cell size this rank
int ghostSize[DIMENSION]; // Total size including ghost cells
float gridOrigin[DIMENSION]; // Actual origin for the grid
float gridStep[DIMENSION]; // Actual step within the grid
float cvac;
float epsilon;
float damp;
int spid;
float spqm;
};
#endif
|