/usr/include/gmt/meca/meca.h is in libgmt-dev 5.4.3+dfsg-1.
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 67 68 | /* $Id: meca.h 19523 2017-12-27 23:20:32Z pwessel $
* Copyright (c) 1996-2012 by G. Patau
* Copyright (c) 2013-2018 by the GMT project
* Donated to the GMT project by G. Patau upon her retirement from IGPG
* Distributed under the Lesser GNU Public Licence
* See README file for copying and redistribution conditions.
*/
/*!
* \file meca.h
* \brief
*/
#include <stdio.h>
#include <math.h>
#define EPSIL 0.0001
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#ifndef M_PI_4
#define M_PI_4 0.78539816339744830962
#endif
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif
#define squared(x) ((x) * (x))
struct AXIS {
double str;
double dip;
double val;
int e;
};
/* val in 10**e dynes-cm */
struct MOMENT {
double mant;
int exponent;
};
struct nodal_plane {
double str;
double dip;
double rake;
};
struct MECHANISM {
struct nodal_plane NP1;
struct nodal_plane NP2;
struct MOMENT moment;
double magms;
};
struct M_TENSOR {
int expo;
double f[6];
};
/* mrr mtt mff mrt mrf mtf in 10**expo dynes-cm */
typedef struct MOMENT st_mo;
typedef struct MECHANISM st_me;
|