NEURON
nrnmpi_dynam_stubs.cpp
Go to the documentation of this file.
1 /* a few calls to nrnmpi functions are made even when MPI not available */
2 /* these need enough implementation to work with nrnmpi_numprocs = 1 */
3 
4 #include "nrnmpiuse.h"
5 #if NRNMPI_DYNAMICLOAD /* to end of file */
6 
7 #include <stdio.h>
8 #include "nrnmpidec.h"
9 
10 extern double nrn_timeus();
11 
12 static void stub_nrnmpi_init(int nrnmpi_under_nrncontrol, int* pargc, char*** pargv) {}
13 static void stub_nrnmpi_terminate() {}
14 static double stub_nrnmpi_mindelay(double m) {
15  return m;
16 }
17 static int stub_nrnmpi_int_allmax(int x) {
18  return x;
19 }
20 static void stub_nrnmpi_barrier() {}
21 
22 void nrnmpi_stubs() {
23  p_nrnmpi_init = stub_nrnmpi_init;
24  p_nrnmpi_terminate = stub_nrnmpi_terminate;
25  p_nrnmpi_wtime = nrn_timeus;
26  p_nrnmpi_mindelay = stub_nrnmpi_mindelay;
27  p_nrnmpi_int_allmax = stub_nrnmpi_int_allmax;
28  p_nrnmpi_barrier = stub_nrnmpi_barrier;
29 }
30 
31 #endif
double nrn_timeus()
Definition: ftime.cpp:27