-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrapper.cs
More file actions
36 lines (30 loc) · 1.51 KB
/
Copy pathWrapper.cs
File metadata and controls
36 lines (30 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace BESO
{
public class Wrapper
{
[DllImport("Solver.dll")]
public static extern void PrintMatrix(int row, int col, double[] val);
[DllImport("Solver.dll")]
public static extern void Assembly_Solve_AMG(bool parallel, int num_freeDofs, int num_allDofs, int num_triplets, int[] free_dofs, int[] ik, int[] jk, double[] vk, double[] F, double[] U);
[DllImport("Solver.dll")]
public static extern void Assembly_Solve(int solver, bool parallel, int num_freeDofs, int num_allDofs, int num_triplets, int[] free_dofs, int[] ik, int[] jk, double[] vk, double[] F, double[] U);
[DllImport("Solver.dll")]
public static extern double TransposeMultiply(int rows, int cols, double[] A, double[] U);
[DllImport("Solver.dll")]
public static extern void PreFE(int nelx, int nely, int[] ik, int[] jk);
[DllImport("Solver.dll")]
public static extern void Flt(int dc_length, double[] dc, double[] sh);
[DllImport("Solver.dll")]
public static extern void Flt3D(int nEl, double[] dc, double[] sh);
[DllImport("Solver.dll")]
public static extern void GetRowSum(int coo_length, int rows, int[] ih, int[] jh, double[] vh, double[] sh);
[DllImport("Solver.dll")]
public static extern void Cal_ik_jk(int nEl, int[] edofMat, int[] ik, int[] jk);
}
}