wiki:VisIt/libsim

Version 2 (modified by Jens Henrik Goebbert, 9 years ago) ( diff )

--

libSim - VisIt's in-situ library

Functions

C-Interface: https://fossies.org/dox/visit2.9.2/VisItControlInterface__V2_8c.html

Fortran-Interface: https://fossies.org/dox/visit2.9.2/visitfortransimV2interface_8c.html

VisItSetBroadcastIntFunction

This function installs a callback function that allows libsim to broadcast an integer from the root process to slave processes.

Prototype void VisItSetBroadcastIntFunction(int (*)(int *, int));

Arguments A pointer to a callback function with prototype: int func(int *, int);

Returns None

Note All processors must call this function and install a callback function after initializing MPI. The callback function must be installed prior to VisItDetectInput.

Sample callback function:

static int visit_broadcast_int_callback(int *value, int sender) {

return MPI_Bcast(value, 1, MPI_INT, sender, MPI_COMM_WORLD);

}


any feedback welcomed - h.zilken@…, goebbert@…

Note: See TracWiki for help on using the wiki.