forked from moebiusband/NuSiF-Solver
Initial checkin
This commit is contained in:
22
PoissonSolver/2D-seq/src/solver.h
Normal file
22
PoissonSolver/2D-seq/src/solver.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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 {
|
||||
double dx, dy;
|
||||
int imax, jmax;
|
||||
double *p, *rhs;
|
||||
double eps, omega;
|
||||
int itermax;
|
||||
} Solver;
|
||||
|
||||
void initSolver(Solver*, Parameter*, int problem);
|
||||
void writeResult(Solver*);
|
||||
int solve(Solver*);
|
||||
#endif
|
Reference in New Issue
Block a user