/[escript]/trunk/paso/src/SolverFCT.h
ViewVC logotype

Contents of /trunk/paso/src/SolverFCT.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1362 - (show annotations)
Mon Dec 17 02:28:16 2007 UTC (11 years, 4 months ago) by gross
File MIME type: text/plain
File size: 1671 byte(s)
and more on FCT solver
1 /* $Id: $ */
2
3 /*******************************************************
4 *
5 * Copyright 2007 by University of Queensland
6 *
7 * http://esscc.uq.edu.au
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 #ifndef INC_SOLVERFCT
15 #define INC_SOLVERFCT
16
17 #include "SystemMatrix.h"
18
19 typedef struct Paso_FCTransportProblem {
20
21 Paso_SystemMatrix * transport_matrix;
22 Paso_SystemMatrix * flux_matrix;
23 double* lumped_mass_matrix;
24 double theta;
25
26 dim_t num_colors;
27 index_t *colorOf;
28 index_t *main_iptr;
29
30 Paso_MPIInfo *mpi_info;
31 dim_t reference_counter;
32
33 } Paso_FCTransportProblem;
34
35 void Paso_FCTransportProblem_free(Paso_FCTransportProblem* in);
36 Paso_FCTransportProblem* Paso_FCTransportProblem_getReference(Paso_FCTransportProblem* in);
37 Paso_SystemMatrix* Paso_FCTransportProblem_borrowTransportMatrix(Paso_FCTransportProblem* in);
38 Paso_SystemMatrix* Paso_FCTransportProblem_borrowFluxMatrix(Paso_FCTransportProblem* in);
39 double* Paso_FCTransportProblem_borrowLumpedMassMatrix(Paso_FCTransportProblem* in);
40 dim_t Paso_FCTransportProblem_getTotalNumRows(Paso_FCTransportProblem* in);
41 Paso_FCTransportProblem* Paso_FCTransportProblem_alloc(double theta, Paso_SystemMatrixPattern *pattern, int block_size);
42 void Paso_FCTransportProblem_setAntiDiffusiveFlux(Paso_FCTransportProblem * fc, double * u, double* fa);
43 void Paso_FCTransportProblem_addDiffusion(Paso_FCTransportProblem * fc, double alpha, Paso_SystemMatrix * B);
44
45
46 #endif /* #ifndef INC_SOLVERFCT */

  ViewVC Help
Powered by ViewVC 1.1.26