FEDEM Solver  R8.0
Source code of the dynamics solver
Functions
main.C File Reference

This file contains the C++ main program for the FEDEM dynamics solver. More...

#include "solverInterface.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for main.C:

Functions

int compareResponse (const char *, const char *, double, int)
 Utility function to compare two ASCII files with numerical data. More...
 
int main (int argc, char **argv)
 Main program for the FEDEM dynamics solver. More...
 

Detailed Description

This file contains the C++ main program for the FEDEM dynamics solver.

Author
Knut Morten Okstad, Fedem Technology AS
Date
2 Dec 2016

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 
)

Main program for the FEDEM dynamics solver.

The main program contains very little logic. It uses functions from the solverInterface API to initialize and solve the dynamic problem at each time step. It can also invoke a response verification before program termination, in which the calculated response is compared with some reference data. This is mainly used to set up regression tests.

Here is the call graph for this function: