Files
lammps/tools/phonon/dynmat.h
Axel Kohlmeyer 4c71beb024 cleanup/simplification of compilation for fix phonon analysis tool "phana"
- include the used tricubic functions directly as static functions
- silence compiler warnings
- define f2c.h imported data types directly or use C equivalents
- since the direct LAPACK API was called and not cLAPACK, declare LAPACK interface and depend only on LAPACK
- add proper dependencies
- disable automatic minor version number generation. step version manually.
- comment out optional spglib functionality by default
2017-09-30 12:12:15 -04:00

62 lines
1.0 KiB
C++

#ifndef DYNMAT_H
#define DYNMAT_H
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "memory.h"
#include "interpolate.h"
using namespace std;
class DynMat {
public:
DynMat(int, char**);
~DynMat();
int nx, ny, nz, nucell;
int sysdim, fftdim;
double eml2f;
char *funit;
void getDMq(double *);
void getDMq(double *, double *);
void writeDMq(double *);
void writeDMq(double *, const double, FILE *fp);
int geteigen(double *, int);
void reset_interp_method();
doublecomplex **DM_q;
int flag_latinfo;
double Tmeasure, basevec[9], ibasevec[9];
double **basis;
int *attyp;
private:
int flag_skip, flag_reset_gamma;
Interpolate *interpolate;
Memory *memory;
int npt, fftdim2;
int nasr;
void EnforceASR();
char *binfile, *dmfile;
double boltz, q[3];
double *M_inv_sqrt;
doublecomplex **DM_all;
void car2dir(); // to convert basis from cartisian coordinate into factional.
void real2rec();
void GaussJordan(int, double *);
void help();
void ShowVersion();
};
#endif