CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   downgrading groovyBC (http://www.cfd-online.com/Forums/openfoam-installation/113255-downgrading-groovybc.html)

immortality February 15, 2013 15:56

downgrading groovyBC
 
I have some problems occur for me in 0.2.1 version of groovyBC although i had not them in 0.2.0 but i dont know how delete it for installing previous version.
how can i do that?

immortality February 15, 2013 16:14

downgrading groovyBC
 
sorry for repeat it here.i have downloaded 0.2.1 groovyBC version but it now show an error on thermophysical model though it wasn't show at previous 0.2.0 version.
1)is it because new version is more powerful and has take an error that preceding one couldn't take that.
2)how can i downgrade that?

gschaider February 15, 2013 17:29

Quote:

Originally Posted by immortality (Post 408115)
I have some problems occur for me in 0.2.1 version of groovyBC although i had not them in 0.2.0 but i dont know how delete it for installing previous version.
how can i do that?

In the swak-distribution there is a number of scripts in the folder maintainanceScripts called removeSwakFilesFrom... You'll probably want Local

Anyway: what is the problem you're having. Bug-report on http://sourceforge.net/apps/mantisbt...l_bug_page.php would be most helpful

immortality February 16, 2013 10:18

thank you.how can i use the utility for local?i write its name with and without sh in terminal and also "Run in Terminal" but nothing occurs.:(

gschaider February 16, 2013 16:03

Quote:

Originally Posted by immortality (Post 408182)
thank you.how can i use the utility for local?i write its name with and without sh in terminal and also "Run in Terminal" but nothing occurs.:(

In the terminal go to the directory with the swak-sources and run it as ./maintainanceScripts/removeLocalSwakVersion.sh (may be misspelled. I rarely use that utility). It only works when run from that directory

immortality February 16, 2013 18:25

i copy its name to folders'terminal but doesnt recognize it:
Code:

ehsan@Ehsan-com:~/Downloads/swak4Foam/maintainanceScripts$ removeSwakFilesFromLocal.sh
removeSwakFilesFromLocal.sh: command not found


gschaider February 17, 2013 06:40

Quote:

Originally Posted by immortality (Post 408218)
i copy its name to folders'terminal but doesnt recognize it:
Code:

ehsan@Ehsan-com:~/Downloads/swak4Foam/maintainanceScripts$ removeSwakFilesFromLocal.sh
removeSwakFilesFromLocal.sh: command not found


Execute it JUST THE WAY I specified it:
Code:

cd <wherever your swak Sources are>
./maintainanceScripts/removeLocalSwakVersion.sh

The way you use it would only work if it was in the PATH and there is no sense in copying there as this is only a measure of last resort. I rather spend my time fixing bugs (which you supposedly have but don't care to report) or working on features than making this script user-friendly. If you can't use the script just remove everything with swak and groovy in the name from $FOAM_USER_LIBBIN and you've downgraded

immortality February 17, 2013 07:11

it showed this message.what does that mean?has it downgraded to 0.2.0 or it must be compiled again?
Code:

ehsan@Ehsan-com:~/Downloads/swak4Foam$ ./maintainanceScripts/removeSwakFilesFromLocal.sh
./theFiles.sh: 3: Syntax error: "(" unexpected


gschaider February 17, 2013 07:21

Quote:

Originally Posted by immortality (Post 408271)
it showed this message.what does that mean?has it downgraded to 0.2.0 or it must be compiled again?
Code:

ehsan@Ehsan-com:~/Downloads/swak4Foam$ ./maintainanceScripts/removeSwakFilesFromLocal.sh
./theFiles.sh: 3: Syntax error: "(" unexpected


That is a problem with incompatible shells (you have an Ubuntu, right). Replace in the remove-script /bin/sh with /bin/bash

gschaider February 17, 2013 07:42

Quote:

Originally Posted by gschaider (Post 408274)
That is a problem with incompatible shells (you have an Ubuntu, right). Replace in the remove-script /bin/sh with /bin/bash

Ah. Yeah. And of course you have to recompile


All times are GMT -4. The time now is 14:04.