C_EMCURV_wrapper.h
Go to the documentation of this file.
1 /* “ButterflyPACK” Copyright (c) 2018, The Regents of the University of California, through
2  Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the
3  U.S. Dept. of Energy). All rights reserved.
4 
5  If you have questions about your rights to use or distribute this software, please contact
6  Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.
7 
8  NOTICE. This Software was developed under funding from the U.S. Department of Energy and the
9  U.S. Government consequently retains certain rights. As such, the U.S. Government has been
10  granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable
11  worldwide license in the Software to reproduce, distribute copies to the public, prepare
12  derivative works, and perform publicly and display publicly, and to permit other to do so.
13 
14  Developers: Yang Liu
15  (Lawrence Berkeley National Lab, Computational Research Division).
16 */
21 #ifndef EMCURV_WRAP /* allow multiple inclusions */
22 #define EMCURV_WRAP
23 
24 typedef void* F2Cptr; // pointer passing fortran derived types to c
25 typedef void* C2Fptr; // pointer passing c objects to fortran
26 
27 //------------------------------------------------------------------------------
28 // Declaration of FORTRAN subroutines to C code
29 extern "C" {
30 void c_emcurv_init(int* Npo,double* Locations,F2Cptr* quant_emcurv, int* model2d, double* wavelength, MPI_Fint* MPIcomm);
31 void c_emcurv_sample(int* m,int* n,_Complex double *value, F2Cptr quant_emcurv);
32 }
33 // -----------------------------------------------------------------------------
34 
35 #endif
void c_emcurv_sample(int *m, int *n, _Complex double *value, F2Cptr quant_emcurv)
void * F2Cptr
Definition: C_EMCURV_wrapper.h:24
void * F2Cptr
Definition: zC_BPACK_wrapper.h:9
void * C2Fptr
Definition: C_EMCURV_wrapper.h:25
void c_emcurv_init(int *Npo, double *Locations, F2Cptr *quant_emcurv, int *model2d, double *wavelength, MPI_Fint *MPIcomm)