Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Rocon.C File Reference
#include <string>
#include <cmath>
#include <iostream>
#include <sstream>
#include "Rocon.H"
#include "TRAIL.H"
#include "Parameters.H"
Include dependency graph for Rocon.C:

Go to the source code of this file.

Functions

 COM_EXTERN_MODULE (Rocin)
 
void CheckCoordinates (double *coords, int number_of_points, double tol)
 
void TransformCoordinates (double *coords, int number_of_points, double xfac, double yfac, double zfac)
 
void Rocon_load_module (const char *name)
 
void Rocon_unload_module (const char *name)
 
void rocon_load_module (const char *name, long int length)
 
void rocon_unload_module (const char *name, long int length)
 
void ROCON_LOAD_MODULE (const char *name, long int length)
 
void ROCON_UNLOAD_MODULE (const char *name, long int length)
 
void rocon_load_module_ (const char *name, long int length)
 
void rocon_unload_module_ (const char *name, long int length)
 
void ROCON_LOAD_MODULE_ (const char *name, long int length)
 
void ROCON_UNLOAD_MODULE_ (const char *name, long int length)
 

Function Documentation

void CheckCoordinates ( double *  coords,
int  number_of_points,
double  tol 
)

Definition at line 74 of file Rocon.C.

References i.

Referenced by Rocon::find_intersections(), Rocon::initialize(), and main().

75 {
76  for(int i = 0; i < number_of_points*3;i++)
77  {
78  if(std::fabs(coords[i]) < tol && (coords[i] != 0.0)){
79  // std::cout << "Rocon> WARNING: node " << (i/3)+1 << "/"
80  // << number_of_points << " "
81  // << (((i%3)==0 ? "x " : ((i%3) < 2) ? "y " : "z "))
82  // << "coordinate = " << coords[i] << std::endl;
83  coords[i] = 0.0;
84  }
85  }
86 }
blockLoc i
Definition: read.cpp:79

Here is the caller graph for this function:

COM_EXTERN_MODULE ( Rocin  )
void Rocon_load_module ( const char *  name)

Definition at line 869 of file Rocon.C.

References Rocon::load().

870 { Rocon::load( std::string(name)); }
static void load(const std::string &mname)
Definition: Rocon.C:813

Here is the call graph for this function:

void rocon_load_module ( const char *  name,
long int  length 
)

Definition at line 875 of file Rocon.C.

References Rocon::load().

876 { Rocon::load( std::string(name, length)); }
double length(Vector3D *const v, int n)
static void load(const std::string &mname)
Definition: Rocon.C:813

Here is the call graph for this function:

void ROCON_LOAD_MODULE ( const char *  name,
long int  length 
)

Definition at line 880 of file Rocon.C.

References Rocon::load().

881 { Rocon::load( std::string(name, length)); }
double length(Vector3D *const v, int n)
static void load(const std::string &mname)
Definition: Rocon.C:813

Here is the call graph for this function:

void rocon_load_module_ ( const char *  name,
long int  length 
)

Definition at line 885 of file Rocon.C.

References Rocon::load().

886 { Rocon::load( std::string(name, length)); }
double length(Vector3D *const v, int n)
static void load(const std::string &mname)
Definition: Rocon.C:813

Here is the call graph for this function:

void ROCON_LOAD_MODULE_ ( const char *  name,
long int  length 
)

Definition at line 890 of file Rocon.C.

References Rocon::load().

891 { Rocon::load( std::string(name, length)); }
double length(Vector3D *const v, int n)
static void load(const std::string &mname)
Definition: Rocon.C:813

Here is the call graph for this function:

void Rocon_unload_module ( const char *  name)

Definition at line 871 of file Rocon.C.

References Rocon::unload().

872 { Rocon::unload( std::string(name)); }
static void unload(const std::string &mname)
Definition: Rocon.C:856

Here is the call graph for this function:

void rocon_unload_module ( const char *  name,
long int  length 
)

Definition at line 877 of file Rocon.C.

References Rocon::unload().

878 { Rocon::unload( std::string(name, length)); }
static void unload(const std::string &mname)
Definition: Rocon.C:856
double length(Vector3D *const v, int n)

Here is the call graph for this function:

void ROCON_UNLOAD_MODULE ( const char *  name,
long int  length 
)

Definition at line 882 of file Rocon.C.

References Rocon::unload().

883 { Rocon::unload( std::string(name, length)); }
static void unload(const std::string &mname)
Definition: Rocon.C:856
double length(Vector3D *const v, int n)

Here is the call graph for this function:

void rocon_unload_module_ ( const char *  name,
long int  length 
)

Definition at line 887 of file Rocon.C.

References Rocon::unload().

888 { Rocon::unload( std::string(name, length)); }
static void unload(const std::string &mname)
Definition: Rocon.C:856
double length(Vector3D *const v, int n)

Here is the call graph for this function:

void ROCON_UNLOAD_MODULE_ ( const char *  name,
long int  length 
)

Definition at line 892 of file Rocon.C.

References Rocon::unload().

893 { Rocon::unload( std::string(name, length)); }
static void unload(const std::string &mname)
Definition: Rocon.C:856
double length(Vector3D *const v, int n)

Here is the call graph for this function:

void TransformCoordinates ( double *  coords,
int  number_of_points,
double  xfac,
double  yfac,
double  zfac 
)

Definition at line 87 of file Rocon.C.

References i.

Referenced by Rocon::initialize().

88 {
89  for(int i = 0; i < number_of_points;i++)
90  {
91  coords[i*3] *= xfac;
92  coords[i*3 + 1] *= yfac;
93  coords[i*3 + 2] *= zfac;
94  }
95 }
blockLoc i
Definition: read.cpp:79

Here is the caller graph for this function: