2
/// This file is part of Rheolef.
4
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
6
/// Rheolef is free software; you can redistribute it and/or modify
7
/// it under the terms of the GNU General Public License as published by
8
/// the Free Software Foundation; either version 2 of the License, or
9
/// (at your option) any later version.
11
/// Rheolef is distributed in the hope that it will be useful,
12
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
/// GNU General Public License for more details.
16
/// You should have received a copy of the GNU General Public License
17
/// along with Rheolef; if not, write to the Free Software
18
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
/// =========================================================================
22
NAME: "space_gen" - output a P1-continuous finite element space
24
"space_gen" {-I'geodir'} 'mesh'[".geo"] {'domain-name'}*
26
Generate a 2d or 3d finite element space.
30
| space_gen square.geo top left
32
-I'geodir' add 'geodir' to the GEOPATH search path.
33
See also "geo"(3) for GEOPATH mechanism.
35
'filename' specifies the name of the file containing
36
the input mesh. The ".geo" extension is assumed.
38
"-" read mesh on standard input instead on a file.
40
'domain-name' specifies a valid domain name where the
41
degrees of freedom are blocked.
43
LMC-IMAG, 38041 Grenoble cedex 9, France
44
| Nicolas.Roquet@imag.fr
45
| Pierre.Saramito@imag.fr
47
class "space"(3), class "geo"(3), class "base"(3)
52
#include "rheolef/rheolef.h"
57
cerr << "space_gen: usage: space_gen "
64
int main(int argc, char**argv)
67
if (argc <= 1) usage();
73
while (argv [io][0] == '-' && argv [io][1] == 'I') {
74
append_dir_to_rheo_path (argv[io]+2);
77
if (strcmp (argv[io], "-") == 0) {
78
// input geo on standard input
79
cerr << "! space: geo on stdin\n";
88
// block dof on boundary domains
91
for (int i = io+1; i < argc; i++) {
94
cerr << "! space: block `" << argv[i] << "'\n";