NuSiF-Solver/PoissonSolver/2D-seq/src/solver.h

25 lines
617 B
C
Raw Normal View History

2023-02-05 07:34:23 +01:00
/*
* Copyright (C) 2022 NHR@FAU, University Erlangen-Nuremberg.
* All rights reserved. This file is part of nusif-solver.
* Use of this source code is governed by a MIT style
* license that can be found in the LICENSE file.
*/
#ifndef __SOLVER_H_
#define __SOLVER_H_
#include "parameter.h"
typedef struct {
2023-06-18 10:08:56 +02:00
double dx, dy;
2023-02-05 07:34:23 +01:00
int imax, jmax;
double *p, *rhs;
2023-06-18 13:55:23 +02:00
double eps, omega, rho;
2023-02-05 07:34:23 +01:00
int itermax;
} Solver;
2023-06-18 10:08:56 +02:00
extern void initSolver(Solver*, Parameter*, int problem);
extern void writeResult(Solver*);
extern void solve(Solver*);
extern void solveRB(Solver*);
extern void solveRBA(Solver*);
2023-02-05 07:34:23 +01:00
#endif