#include "Rocin.h"
#include "Roccom_base.h"
#include "roccom.h"
#include "roccom_devel.h"
#include <iostream>
#include <cstring>
#include <string>
Go to the source code of this file.
COM_EXTERN_MODULE |
( |
Rocin |
| ) |
|
A test program that reads in given input HDF files using Rocin and write out all the contents into one HDF file using Rocout with a given file prefix.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 43 of file intest1.C.
References COM_call_function(), COM_finalize(), COM_get_attribute_handle(), COM_get_function_handle(), COM_init(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_print_profile(), and COM_set_profiling().
46 if ( argc < 3 || argc > 3 ) {
47 std::cout <<
"Usage: To test in serial: \n\t" << argv[0]
48 <<
" <input HDF file|Rocin control file> <winname>\n"
49 <<
"To test in parallel: \n\t" << argv[0]
50 <<
" -com-mpi <Rocin control file> <winname>\n"
56 const char *HDF_in = argv[1];
57 const string winname(argv[2]);
68 const char *lastdot=std::strrchr( HDF_in,
'.');
69 if ( lastdot && std::strcmp( lastdot,
".txt")==0) {
86 &NEW_all, winname.c_str(),
"000");
int COM_get_attribute_handle(const char *waname)
void COM_print_profile(const char *fname, const char *header)
void COM_set_profiling(int i)
void COM_call_function(const int wf, int argc,...)
void COM_init(int *argc, char ***argv)
#define COM_LOAD_MODULE_STATIC_DYNAMIC(moduleName, windowString)
int COM_get_function_handle(const char *wfname)