FreeFEM source code
int[int][int]
array to get the structure of sparse matrix.
see tutorial/sparse-matrix.edp example at end
matrix A = va(Ph,Vh);
int[int] a = A, at= A';
meshL ThL = segment(10); fespace VhL(ThL,P1); VhL u= x;
cout << u(0.5) << endl;
cout << u(0.5,0) << endl;
meshS
mmg2d
for two-dimensional mesh
localParameter
, -nosizreq
, -hgradreq`int[int][int]
array to get the structure of sparse matrix.
see tutorial/sparse-matrix.edp example at end
matrix A = va(Ph,Vh);
int[int] a = A, at= A';
meshL ThL = segment(10); fespace VhL(ThL,P1); VhL u= x;
cout << u(0.5) << endl;
cout << u(0.5,0) << endl;
meshS
mmg2d
for two-dimensional mesh
localParameter
, -nosizreq
, -hgradreq`Sorry the ARM version (Apple-Silicon) was wrong before due to mistake in brew library (need to install brew gfortran)
The new Mac version (develop) works after security authorization (see README.md) if not please send me a Mail [email protected].
Remarque: The dev file are the current develop version.
Full Changelog: https://github.com/FreeFem/FreeFem-sources/compare/v4.12...v4.13
the New mac intel version works on Monterey system (12.6) or newer (this is the develop version)
Remark on Apple version, the two versions (M1, intel) are in test (full version with PETSC, mpi, all linear solve except PARDISO) There is a problem of installation on arm and Intel version with external dynamic lib (.dylib) I put a d version to solve dylib each Follow the README.md in dmg file (in version -c) correction of install-app.sh script
Full Changelog: https://github.com/FreeFem/FreeFem-sources/compare/v4.10...v4.11
intallBE(ThL)
and unified the notation by adding
intallBE(ThS)
, intallBE(Th2)
, intallBE(Th3)
nuVertex
of now the vertex number of element in intallBE0d integral
BoundaryBE
, InternalBE
to know if border element (BE) is on true boundary of not.
update nElementonB
in case on no manifold data (value greater > 2) in meshL, MeshS case ..
add code to use jump, mean of test functuon on MeshL case. ( not in mesh3 ) to compute RHS.make petsc-slepc
transfer
and transferMat
with some finite elementsFull Changelog: https://github.com/FreeFem/FreeFem-sources/compare/v4.9...v4.10
meshtool
to add tool to compute the number of connected components of a all kind of mesh
(mesh,mesh3,meshS,meshL) with 2 kind of connected components ones on interior part of the mesh (default) ans
secondly on the closure of the mesh (see examples/hpddm/bConnectedComponents.edp
)
add functions int[int] In=iminP1K(Th,u) or int[int] Ix=imaxP1K(Th,u) get the array min/max of value u[i]bfstream
to to read binary int (4 bytes) to read fortran file and try to pull tools to share the endiannes
in progressPC_MG_GALERKIN_BOTH
matrix C = kron(A, B)
int Mesh::DataFindBoundary::Find(R2 PP,R *l,int & outside) const
the parameter l not correclty return due to local variable.3dCurve/basicGlue.edp
and add missing testSVDSolve()
with a rectangular Mat
examples/hpddm/bilaplacian-2d-PETSc.edp
examples/hpddm/oseen-2d-PETSc.edp
PEPSolve()
Ns
normal vector in R^3 on meshS (normal of the surface) of current point (to day Ns of [x,y,0] plan is [0,0,-1]) no be compatibe to exterior normal.Tl
tangent vector in R^3 on meshL (tangent vector of the line/curve) of current pointspiltpbedge
in buildmesh
to split in to edge with two boundary verticesexamples/hpddm/DMPlex-PETSc.edp
MatDestroy
MatPtAP
and transferMat
for parallel interpolation between non-matching grids, see examples/hpddm/PtAP-2d-PETSc.edp
or examples/hpddm/diffusion-mg-2d-PETSc.edp
SVDSolve
from SLEPc to compute singular value decompositions, see examples/hpddm/mf-2d-SLEPc.edp
or examples/hpddm/helmholtz-2d-SLEPc-complex.edp
NEPSolve
from SLEPc to solve nonlinear eigenvalue problems, see examples/hpddm/nonlinear-2d-SLEPc-complex.edp
transpose
parameter when constructing a Mat
for defining a matrix-free transposed operationPetscMemoryGetCurrentUsage
MatLoad
to load a PETSc Mat
from disk, see examples/hpddm/MatLoad-PETSc.edp
HMatrix<complex>
and to densify a HMatrix<complex>
into a Mat<complex>
--with-cudac=0
in make petsc-slepc
, see https://github.com/FreeFem/FreeFem-sources/issues/141
view
, hasType
, changeSchur
to respectively ObjectView
, HasType
, and ChangeSchur
changeNumbering
, globalNumbering
, originalNumbering
, changeOperator
, destroyRecycling
, and attachCoarseOperator
to respectively ChangeNumbering
, GlobalNumbering
, OriginalNumbering
, ChangeOperator
, DestroyRecycling
, and AttachCoarseOperator
Nt
the normal vector of the current (wrong on meshL) use Ns
pr Tl
augmentation
routine from the PETSc pluginMPIF77
variabletutomesh1d.edp
-fno-stack-protector
when building PETSc on Windows, see https://community.freefem.org/t/error-loading-complex-petsc-slepc-library/370
abs
function of array