-
Notifications
You must be signed in to change notification settings - Fork 3
/
stencil_optimization.h
22 lines (16 loc) · 968 Bytes
/
stencil_optimization.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "definitions.h"
void top3dmgcg(const uint_fast32_t nelx, const uint_fast32_t nely,
const uint_fast32_t nelz, const DTYPE volfrac, const DTYPE rmin,
const uint_fast32_t nl, const float cgtol,
const uint_fast32_t cgmax, const int verbose,
const int write_result,const int max_iterations);
void applyDensityFilter(const struct gridContext gc, const DTYPE rmin,
const DTYPE *rho, DTYPE *out);
void applyDensityFilterGradient(const struct gridContext gc, const DTYPE rmin,
DTYPE *v);
void writeDensityVtkFile(const int nelx, const int nely, const int nelz,
const DTYPE *densityArray, const char *filename);
void writeDensityVtkFileWithHalo(const int nelx, const int nely, const int nelz,
const DTYPE *densityArray,
const char *filename);