Muscle C/C++ API: fortranmuscle.cpp File Reference

fortranmuscle.cpp File Reference

#include "fortranmuscle.h"
#include "cppmuscle.hpp"
#include "logger.hpp"
#include <string>
#include <cstring>
#include <stdlib.h>
#include <ctype.h>

Functions

char * f2cstr (const char *str, int len)
void c2fstr (const char *cstr, char *fstr, int reslen)
void muscle_init_ (int *argc, char *argv, int len)
void muscle_kernel_name_ (char *result, int reslen)
void muscle_get_property_ (const char *name, char *result, int len, int reslen)
void muscle_receive_ (const char *entrance_name, void *array, int *size, muscle_datatype_t *type, int len)
void muscle_send_ (const char *exit_name, void *array, int *size, muscle_datatype_t *type, int len)
void muscle_will_stop_ (int *result)
void muscle_finalize_ (void)

Function Documentation

void c2fstr ( const char *  cstr,
char *  fstr,
int  reslen 
)

char* f2cstr ( const char *  str,
int  len 
)

void muscle_finalize_ ( void   ) 

Finalizes MUSCLE.

void muscle_get_property_ ( const char *  name,
char *  result,
int  len,
int  reslen 
)

Get a property. Result (const) string is stored in *result.

void muscle_init_ ( int *  argc,
char *  argv,
int  len 
)

Initializes MUSCLE from Fortran.

Parameters:
*argv a character string containing *argc arguments separated by nul characters.

void muscle_kernel_name_ ( char *  result,
int  reslen 
)

Get the kernel name. Result (const) string is stored in *result.

void muscle_receive_ ( const char *  entrance_name,
void *  array,
int *  size,
muscle_datatype_t type,
int  len 
)

Send a message. Use MUSCLE datatypes to specify what is sent. From Fortran, only receive arrays. Also, make sure that enough memory is allocated to receive the next message.

void muscle_send_ ( const char *  exit_name,
void *  array,
int *  size,
muscle_datatype_t type,
int  len 
)

Send a message. Use MUSCLE datatypes to specify what is sent. From Fortran, only send arrays.

void muscle_will_stop_ ( int *  result  ) 

Whether the current instantiation should stop. Result (const) boolean is stored in *result.


Generated on Thu Oct 18 14:28:28 2012 for Muscle C/C++ API by  doxygen 1.5.6