xref: /phasta/svLS/svLS_API_c.h (revision cc72a73fd2b79f4dd0a850fa4af718cd73554811)
1 /*
2  *--------------------------------------------------------------------
3  *  This software is Copyright (c) 2012-2015 The Regents of the
4  *  University of California. All Rights Reserved.
5  *
6  *  Permission to copy and modify this software and its documentation
7  *  for educational, research and non-profit purposes, without fee,
8  *  and without a written agreement is hereby granted, provided that
9  *  the above copyright notice, this paragraph and the following three
10  *  paragraphs appear in all copies.
11  *
12  *  Permission to make commercial use of this software may be obtained
13  *  by contacting:
14  *  Technology Transfer Office
15  *  9500 Gilman Drive, Mail Code 0910
16  *  University of California
17  *  La Jolla, CA 92093-0910
18  *  (858) 534-5815
19  *  invent@ucsd.edu
20  *
21  *  This software program and documentation are copyrighted by The
22  *  Regents of the University of California. The software program and
23  *  documentation are supplied "as is", without any accompanying
24  *  services from The Regents. The Regents does not warrant that the
25  *  operation of the program will be uninterrupted or error-free. The
26  *  end-user understands that the program was developed for research
27  *  purposes and is advised not to rely exclusively on the program for
28  *  any reason.
29  *
30  *  IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY
31  *  PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
32  *  DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS
33  *  SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
34  *  CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35  *  THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
36  *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
37  *  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
38  *  SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE
39  *  UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE
40  *  MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
41  *--------------------------------------------------------------------
42  */
43 
44 void svls_commu_create_(svLS_commuType *commu, int *commi);
45 void svls_commu_free_(svLS_commuType *commu);
46 
47 void svls_lhs_create_c_(void **lhs, svLS_commuType *commu, int *gnNo, int *nNo, int *nnz, int *gNodes, int *rowPtr, int *colPtr, int *nFaces);
48 void svls_lhs_free_(void *lhs);
49 
50 void svls_ls_create_(svLS_lsType *ls, int *LS_type, double *relTol, double *absTol, int *maxItr, int *dimKry, double *relTolIn, double *absTolIn, int *maxItrIn);
51 void svls_ls_free_(svLS_lsType *ls);
52 
53 void svls_bc_create_(void *lhs, int *faIn, int *nNo, int *dof, int *BC_type, int *gNodes, double *Val);
54 void svls_bc_free_(void *lhs, int *faIn);
55 
56 void svls_solve_(void *lhs, svLS_lsType *ls, int *dof, double *Ri, double *Val, int *incL, double *res);
57