- Works the same in Explorer (tested only on 6.0) and Netscape (tested only on Netscape 7.0 and Mozilla 1.3.1), but does not work in Opera (6.01) ***************************************************************************** */ if (document.images) { // tests for image support trilinos_title_normal = new Image(310, 55); trilinos_title_normal.src = "../../packages/common/webroot_common/trilinos_title_normal.png"; trilinos_title_over = new Image(310, 55); trilinos_title_over.src = "../../packages/common/webroot_common/trilinos_title_over.png"; sandia_normal = new Image(180, 29); sandia_normal.src = "../../packages/common/webroot_common/sandia_normal.png"; sandia_over = new Image(180, 29); sandia_over.src = "../../packages/common/webroot_common/sandia_over.png"; trilinos_normal = new Image(183, 100); trilinos_normal.src = "../../packages/common/webroot_common/trilinos_normal.png"; trilinos_over = new Image(183, 100); trilinos_over.src = "../../packages/common/webroot_common/trilinos_over.png"; } // if (document.images) //-->
|
Galeri: Finite Element and Matrix Generation Package The Trilinos package Galeri contains a suite of utilities and classes to generate a variety of (distributed) linear systems. Galeri's functionalities are very close to that of the MATLAB's gallery() function.
Several well-know
finite element and finite difference matrices can be generated using only a few
simple code lines.
For a quick overview of Galeri, see
here. You can also give a look to the example
below, which generates a matrix
corresponding to a nx * ny Cartesian grid, divided across mx *
my processors (so that Comm.NumProc() = mx * my).:
int main(int argv, char* argc[])
{
#ifdef HAVE_MPI
MPI_Init(&argv, &argc);
Epetra_MpiComm Comm(MPI_COMM_WORLD);
#else
Epetra_SerialComm Comm;
#endif
Teuchos::ParameterList GaleriList;
GaleriList.set("nx", 10 * Comm.NumProc());
GaleriList.set("ny", 10);
GaleriList.set("mx", Comm.NumProc());
GaleriList.set("my", 1);
Epetra_Map* Map = CreateMap("Cartesian2D", Comm, GaleriList);
Epetra_RowMatrix* Matrix = CreateCrsMatrix("Laplace2D", Map, GaleriList);
...
#ifdef HAVE_MPI
MPI_Finalize();
#endif
}
Galeri also contains a nice and simple finite element code,
to be used for scalar and vector elliptic-type equations using Galerkin and
SUPG discretization techniques, on both 2D and 3D unstructured grids, composed
by triangles, quads, tetrahedra and hexahedra.
Galeri's technical documentation is maintained using Doxygen; click here to access the latest Doxygen documentation. |
|
||
| ||||