~ubuntu-branches/ubuntu/wily/rheolef/wily

« back to all changes in this revision

Viewing changes to nfem/sbin/bamg2geo

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2013-04-30 11:29:51 UTC
  • mfrom: (1.2.1) (11.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130430112951-g69nuqin77t75dek
Tags: 6.4-1
[ Pierre Saramito ]
* New upstream release 6.4 (major changes):
  - new powerful c++ expressions for FEM specifications
  - configure script improved (portability increased)
  - minor bug fixes
* control:
  - all architectures are considered (armel & armhf are back)
  - no more circular-dependency librheolef-dev <--> rheolef
* rules: add security compiler flags (hardening and -W,-l,relro)
* watch: include an updated version, thanks to B. Martens <bartm@debian.org>
* copyright: various file format fixes

[ Sylvestre Ledru ]
*  Standards-Version updated to 3.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
#Vertice domain names are usefull for some special boundary conditions.
106
106
#OPTIONS:
107
107
#@table @code
108
 
#  @itemx -upgrade
 
108
#  @item -upgrade
109
109
#  @itemx -noupgrade
110
110
#       Default is to output a version 2 @file{.geo} file format. @xref{geo command}.   
111
111
#       With the @code{-noupgrade}, a version 1 file format is assumed.
112
 
#  @itemx -dom @var{dom1} ... -dom @var{domN}
 
112
#  @item -cartesian
 
113
#  @itemx -rz
 
114
#  @itemx -zr
 
115
#       Specifies the coordinate system.
 
116
#  @item -dom @var{dom1} ... -dom @var{domN}
113
117
#@end table
114
118
#End:
115
119
 
119
123
 
120
124
PROG=`expr $0 : '.*/\(.*\)' \| $0`
121
125
 
122
 
USAGE="usage: $PROG [-[no]upgrade] input[.bamg] input[.dmn]"
 
126
USAGE="usage: $PROG [-[no]upgrade] [-catresian|-rz|-rz] input[.bamg] input[.dmn]"
123
127
 
124
128
#============================================================
125
129
# Arguments
136
140
bamg_file=""
137
141
dom_list=""
138
142
geobin="geo"
 
143
sys_coord_flag=""
139
144
while test $# -ne 0; do
140
145
    case $1 in
141
146
        -help)        echo $USAGE 1>&2; exit 0;;
142
147
        -noupgrade)   upgrade="";;
143
148
        -upgrade)     upgrade="-upgrade";;
 
149
        -cartesian)   ;;
 
150
        -rz|-zr)      sys_coord_flag="$1";;
144
151
        -dom)         do_dom=true; dom_list="${dom_list} $2"; shift;;
145
152
        *.bamg)       bamg_file=$1;;
146
153
        *.dmn)        dmn_file=$1;;
207
214
#============================================================
208
215
new_format=`rheolef-config --have-new-code 2>/dev/null`
209
216
if "$new_format" = true; then
210
 
  options="-if bamg -add-boundary"
 
217
  options="$sys_coord_flag -if bamg -add-boundary"
211
218
else
212
219
  options="-name toto -input-bamg -upgrade"
213
220
fi