Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70510325
Macros.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 7, 06:04
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Jul 9, 06:04 (2 d)
Engine
blob
Format
Raw Data
Handle
18854913
Attached To
rGOOSEFEM GooseFEM
Macros.h
View Options
/* =================================================================================================
(c - GPLv3) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/GooseFEM
================================================================================================= */
#ifndef GOOSEFEM_MACROS_H
#define GOOSEFEM_MACROS_H
#define _USE_MATH_DEFINES
// to use "M_PI" from "math.h"
#include <assert.h>
#include <cstdlib>
#include <vector>
#include <string>
#include <memory>
#include <iostream>
#include <iomanip>
#include <math.h>
#include <Eigen/Eigen>
#include <cppmat/cppmat.h>
// =================================================================================================
#define GOOSEFEM_WORLD_VERSION 0
#define GOOSEFEM_MAJOR_VERSION 0
#define GOOSEFEM_MINOR_VERSION 6
#define GOOSEFEM_VERSION_AT_LEAST(x,y,z) \
(GOOSEFEM_WORLD_VERSION>x || (GOOSEFEM_WORLD_VERSION>=x && \
(GOOSEFEM_MAJOR_VERSION>y || (GOOSEFEM_MAJOR_VERSION>=y && \
GOOSEFEM_MINOR_VERSION>=z))))
#define GOOSEFEM_VERSION(x,y,z) \
(GOOSEFEM_WORLD_VERSION==x && \
GOOSEFEM_MAJOR_VERSION==y && \
GOOSEFEM_MINOR_VERSION==z)
// =================================================================================================
namespace
GooseFEM
{
typedef
Eigen
::
Matrix
<
double
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
,
Eigen
::
RowMajor
>
MatD
;
typedef
Eigen
::
Matrix
<
size_t
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
,
Eigen
::
RowMajor
>
MatS
;
typedef
Eigen
::
Matrix
<
double
,
Eigen
::
Dynamic
,
1
,
Eigen
::
ColMajor
>
ColD
;
typedef
Eigen
::
Matrix
<
size_t
,
Eigen
::
Dynamic
,
1
,
Eigen
::
ColMajor
>
ColS
;
typedef
Eigen
::
Matrix
<
int
,
Eigen
::
Dynamic
,
1
,
Eigen
::
ColMajor
>
ColI
;
// -------------------------------------------------------------------------------------------------
// dummy operation that can be use to suppress the "unused parameter" warnings
#define UNUSED(p) ( (void)(p) )
// -------------------------------------------------------------------------------------------------
}
#endif
Event Timeline
Log In to Comment