Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Roccom_base.C File Reference

Contains the base implementation of Roccom. More...

#include <iostream>
#include <sys/time.h>
#include <algorithm>
#include <dlfcn.h>
#include <cctype>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <sstream>
#include "Roccom_base.h"
#include "commpi.h"
Include dependency graph for Roccom_base.C:

Go to the source code of this file.

Classes

class  COM_Object_derived
 

Functions

static void remove_arg (int *argc, char ***argv, int i)
 Remove an argument from the argument list. More...
 
void print_type (std::ostream &os, COM_Type type)
 
static double get_wtime ()
 

Variables

COM_END_NAME_SPACE void * p_xargc
 Circumvent problem with missing variables. More...
 
void * p_xargv
 

Detailed Description

Contains the base implementation of Roccom.

The more advanced implementations should reimplement the following: window_init_done, delete_window, delete_pane, and call_function, icall_function.

See Also
Roccom_base.h, Window.h

Definition in file Roccom_base.C.

Function Documentation

static double get_wtime ( )
inlinestatic

Definition at line 1734 of file Roccom_base.C.

Referenced by Roccom_base::call_function().

1734  {
1735 
1736  ::timeval tv;
1737  gettimeofday( &tv, NULL);
1738 
1739  return tv.tv_sec + tv.tv_usec*1.e-6;
1740 }

Here is the caller graph for this function:

void print_type ( std::ostream &  os,
COM_Type  type 
)

Definition at line 480 of file Roccom_base.C.

References COM_CHAR, COM_CHARACTER, COM_DOUBLE, COM_DOUBLE_PRECISION, COM_F90POINTER, COM_FLOAT, COM_INT, COM_INTEGER, COM_LOGICAL, COM_LONG, COM_METADATA, COM_MPI_COMMC, COM_MPI_COMMF, COM_OBJECT, COM_REAL, COM_STRING, and COM_VOID.

Referenced by Roccom_base::get_attribute(), Roccom_base::new_attribute(), Roccom_base::set_function(), and Roccom_base::set_member_function_helper().

480  {
481  switch (type) {
482  case COM_STRING:
483  os << "STRING"; break;
484  case COM_METADATA:
485  os << "METADATA"; break;
486  case COM_VOID:
487  os << "VOID"; break;
488  case COM_OBJECT:
489  os << "COM_Object"; break;
490  case COM_F90POINTER:
491  os << "F90POINTER"; break;
492  case COM_CHAR: case COM_CHARACTER:
493  os << "CHAR"; break;
494  case COM_DOUBLE:
495  case COM_DOUBLE_PRECISION:
496  os << "double"; break;
497  case COM_INT:
498  case COM_LONG:
499  case COM_INTEGER:
500  os << "int"; break;
501  case COM_FLOAT:
502  case COM_REAL:
503  os << "float"; break;
504  case COM_LOGICAL:
505  os << "logical"; break;
506  case COM_MPI_COMMC:
507  case COM_MPI_COMMF:
508  os << "MPI_Comm"; break;
509  default:
510  os << "type(" << type << ")";
511  }
512 }
C/C++ Data types.
Definition: roccom_basic.h:129
Fortran Data types.
Definition: roccom_basic.h:133

Here is the caller graph for this function:

static void remove_arg ( int *  argc,
char ***  argv,
int  i 
)
inlinestatic

Remove an argument from the argument list.

Definition at line 78 of file Roccom_base.C.

Referenced by Roccom_base::Roccom_base().

78  {
79  for ( int j=i; j<*argc-1; ++j) (*argv)[j]=(*argv)[j+1];
80  --*argc;
81 }
blockLoc i
Definition: read.cpp:79
j indices j
Definition: Indexing.h:6

Here is the caller graph for this function:

Variable Documentation

COM_END_NAME_SPACE void* p_xargc

Circumvent problem with missing variables.

Definition at line 2274 of file Roccom_base.C.

void* p_xargv

Definition at line 2275 of file Roccom_base.C.