Hallo,
I've got a problem with the execution of a user defined .unix.bat file.
Its contents are
#!/bin/csh -f
# OutputFile: $2/sgbem.log
# ErrorFile: $2/sgbem.err
cd $2
rm -f $2/*.flavia.* $2/sgbem.err $2/sgbem.log $2/inputfilename.txt
touch $2/inputfilename.txt
echo $1.dat $2/inputfilename.txt
cp $3/sgbem $2
$2/sgbem
if ( !(-e $2/$1.flavia.res) || !(-s $2/$1.flavia.res)) then
echo "Program failed" $2/sgbem.err
endif
The Fortran executable 'sgbem' reads the input file name written in
'inputfilename.txt'.
The problem is that the script is executed but the solver execution
fails. All other commands are executed.
I tried to manually launch the script from the directory containing the
model I wanted to solve (thus doing exactly what GiD should do according
to the manual) and everything worked. The command I issued is
[arturo at nerone 3cubi.gid]$/opt/gid/problemtypes/sgbem.gid/sgbem.unix.bat
3cubi /home/arturo/3cubi.gid/ /opt/gid/problemtypes/sgbem.gid/
I'm using GiD 7 on RedHat Linux. Under Windows everything works just
fine.
Thanks
arturo
--
Arturo di Gioia
Dipartimento di Ingegneria Meccanica e Strutturale
Universita' degli Studi di Trento
v. Mesiano 77
38100 Trento
ITALY
tel (office) : +39 0461882525
tel (personal): +39 3489118982
[GiDlist] Problems with .unix.bat
Moderator: GiD Team
[GiDlist] Problems with .unix.bat
Some comments about your .unix.bat script:
1) cd $2
Is not necessary, GiD automatically change to this directory before call the bat file.
2) Instead use echo $1.dat $2/inputfilename.txt
Is best only rename $1.dat to inputfilename.txt :
mv $2/$1.dat $2/inputfilename.txt
3) check if the copy of sgbem have execution permissions
To make a file executable use:
chmod +x sgbem
delete this copy of sgbem after run
rm $2/sgbem
Regards
Enrique
----- Original Message -----
From: "Arturo di Gioia" arturo.digioia at ing.unitn.it
To: "GiD_list" gidlist at gatxan.cimne.upc.es
Sent: Tuesday, October 01, 2002 6:59 PM
Subject: [GiDlist] Problems with .unix.bat
Hallo,
I've got a problem with the execution of a user defined .unix.bat file.
Its contents are
#!/bin/csh -f
# OutputFile: $2/sgbem.log
# ErrorFile: $2/sgbem.err
cd $2
rm -f $2/*.flavia.* $2/sgbem.err $2/sgbem.log $2/inputfilename.txt
touch $2/inputfilename.txt
echo $1.dat $2/inputfilename.txt
cp $3/sgbem $2
$2/sgbem
if ( !(-e $2/$1.flavia.res) || !(-s $2/$1.flavia.res)) then
echo "Program failed" $2/sgbem.err
endif
The Fortran executable 'sgbem' reads the input file name written in
'inputfilename.txt'.
The problem is that the script is executed but the solver execution
fails. All other commands are executed.
I tried to manually launch the script from the directory containing the
model I wanted to solve (thus doing exactly what GiD should do according
to the manual) and everything worked. The command I issued is
[arturo at nerone 3cubi.gid]$/opt/gid/problemtypes/sgbem.gid/sgbem.unix.bat
3cubi /home/arturo/3cubi.gid/ /opt/gid/problemtypes/sgbem.gid/
I'm using GiD 7 on RedHat Linux. Under Windows everything works just
fine.
Thanks
arturo
--
Arturo di Gioia
Dipartimento di Ingegneria Meccanica e Strutturale
Universita' degli Studi di Trento
v. Mesiano 77
38100 Trento
ITALY
tel (office) : +39 0461882525
tel (personal): +39 3489118982
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021001/863ff479/attachment.htm
1) cd $2
Is not necessary, GiD automatically change to this directory before call the bat file.
2) Instead use echo $1.dat $2/inputfilename.txt
Is best only rename $1.dat to inputfilename.txt :
mv $2/$1.dat $2/inputfilename.txt
3) check if the copy of sgbem have execution permissions
To make a file executable use:
chmod +x sgbem
delete this copy of sgbem after run
rm $2/sgbem
Regards
Enrique
----- Original Message -----
From: "Arturo di Gioia" arturo.digioia at ing.unitn.it
To: "GiD_list" gidlist at gatxan.cimne.upc.es
Sent: Tuesday, October 01, 2002 6:59 PM
Subject: [GiDlist] Problems with .unix.bat
Hallo,
I've got a problem with the execution of a user defined .unix.bat file.
Its contents are
#!/bin/csh -f
# OutputFile: $2/sgbem.log
# ErrorFile: $2/sgbem.err
cd $2
rm -f $2/*.flavia.* $2/sgbem.err $2/sgbem.log $2/inputfilename.txt
touch $2/inputfilename.txt
echo $1.dat $2/inputfilename.txt
cp $3/sgbem $2
$2/sgbem
if ( !(-e $2/$1.flavia.res) || !(-s $2/$1.flavia.res)) then
echo "Program failed" $2/sgbem.err
endif
The Fortran executable 'sgbem' reads the input file name written in
'inputfilename.txt'.
The problem is that the script is executed but the solver execution
fails. All other commands are executed.
I tried to manually launch the script from the directory containing the
model I wanted to solve (thus doing exactly what GiD should do according
to the manual) and everything worked. The command I issued is
[arturo at nerone 3cubi.gid]$/opt/gid/problemtypes/sgbem.gid/sgbem.unix.bat
3cubi /home/arturo/3cubi.gid/ /opt/gid/problemtypes/sgbem.gid/
I'm using GiD 7 on RedHat Linux. Under Windows everything works just
fine.
Thanks
arturo
--
Arturo di Gioia
Dipartimento di Ingegneria Meccanica e Strutturale
Universita' degli Studi di Trento
v. Mesiano 77
38100 Trento
ITALY
tel (office) : +39 0461882525
tel (personal): +39 3489118982
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021001/863ff479/attachment.htm
[GiDlist] GiD 7.1, Utilities>Move, Malfunction
The Utility function "Move" in GiD 7.1 appears to behave the same as the "Copy" function. It creates new entities and does not reform the links to moved entities. This is a severe limitation when editing 3D models. Is there a work around or patch to fix this?
Randy
Randy
[GiDlist] GiD 7.1, Utilities>Move, Malfunction
This is not a bug, the utility move, create a copy of entities only if the selection cannot be moved because it is joined to another unselected entities (or exists higherentites).
If you select a group of isolated entities, then this entitites are only moved.
For example:
Regards
Enrique Escolano
----- Original Message -----
From: "LEWIS, RANDEL E" rlewis at oppd.com
To: gid at gatxan.cimne.upc.es> gidlist at gatxan.cimne.upc.es
Sent: Friday, October 04, 2002 8:19 PM
Subject: [GiDlist] GiD 7.1, UtilitiesMove, Malfunction
The Utility function "Move" in GiD 7.1 appears to behave the same as the "Copy" function. It creates new entities and does not reform the links to moved entities. This is a severe limitation when editing 3D models. Is there a work around or patch to fix this?
Randy
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021004/a09eb44b/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5844 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021004/a09eb44b/attachment.gif
If you select a group of isolated entities, then this entitites are only moved.
For example:
Regards
Enrique Escolano
----- Original Message -----
From: "LEWIS, RANDEL E" rlewis at oppd.com
To: gid at gatxan.cimne.upc.es> gidlist at gatxan.cimne.upc.es
Sent: Friday, October 04, 2002 8:19 PM
Subject: [GiDlist] GiD 7.1, UtilitiesMove, Malfunction
The Utility function "Move" in GiD 7.1 appears to behave the same as the "Copy" function. It creates new entities and does not reform the links to moved entities. This is a severe limitation when editing 3D models. Is there a work around or patch to fix this?
Randy
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021004/a09eb44b/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5844 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021004/a09eb44b/attachment.gif