11 lines
484 B
Bash
Executable File
11 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# compile
|
|
# g++-9 fmm_2d_triangle.cpp -o fmm_2d_triangle -I/usr/local/include -L/usr/local/lib -lgctl
|
|
|
|
# get triangular mesh with the minimal internal angle set to 30 degrees and the maximal area equals 50
|
|
#triangle -pq30a50 simple_mesh.poly
|
|
# convert to Gmsh (.msh) file and display
|
|
#./fmm_2d_triangle convert simple_mesh.1 && open -a Gmsh simple_mesh.1.msh
|
|
# calculate fmm time
|
|
./fmm_2d_triangle calculate cube_mesh.1 50/50/30/1.0 && open -a Gmsh cube_mesh.1_linear.msh |