FEDEM Solver  R8.0
Source code of the dynamics solver
Macros | Typedefs | Functions
testInverse.C File Reference

Test program for components of the inverse method. More...

#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <vector>
#include <fstream>
#include <iostream>
#include "../solverInterface.h"
Include dependency graph for testInverse.C:

Macros

#define M_PI   3.14159265358979323846
 The value of π. More...
 

Typedefs

typedef std::pair< int, int > Ipair
 Convenience type definition. More...
 
typedef std::vector< IpairIpairs
 Convenience type definition. More...
 

Functions

int compareResponse (const char *, const char *, double, int=0)
 Utility function to compare two ASCII files with numerical data. More...
 
int main (int argc, char **argv)
 Test program for components of the inverse method. More...
 

Detailed Description

Test program for components of the inverse method.

Author
Knut Morten Okstad, Fedem Technology AS
Date
23 Jan 2018

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

The value of π.

Typedef Documentation

◆ Ipair

typedef std::pair<int,int> Ipair

Convenience type definition.

◆ Ipairs

typedef std::vector<Ipair> Ipairs

Convenience type definition.

Function Documentation

◆ compareResponse()

int compareResponse ( const char *  fn1,
const char *  fn2,
double  eps,
int  skip 
)

Utility function to compare two ASCII files with numerical data.

Parameters
[in]fn1Path to the first file
[in]fn2Path to the second file (with reference data)
[in]epsComparison tolerance
[in]skipNumber of initial lines to skip coomparison for
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Test program for components of the inverse method.

Here is the call graph for this function: