-
Filter by Topic
Most Popular
All Topics
- List all discussions
Environment variable setting
|
Thread index | Previous thread | Next thread | Start a new discussion |
June 29, 2010 12:01pm UTC
Environment variable setting
Hi!
Has anyone known how to set the environment variables when running comsol under Linux? I am currently writting PBS Script to submit a job to the cluster, however, I don't know what environment variables should be set in the script. For example, if I have installed the Comsol in the directory: /home/local/comsol35a, should I add the following sentenses in the script?
source /usr/local/comsol35a
comsol batch -np 2 -input=In.mph -output=Out.mph
I have tried but it comes out with an error:
/usr/local/inspur/mom_priv is not a valid COMSOL directory.
What can I do to solve this problem?
Reply | Reply with Quote | Send private message | Report Abuse
August 26, 2010 4:59am UTC in response to Yao Zhang
Re: Environment variable setting
What about:
cd <directory that contains the In.mph file>
comsol batch -np 2 -inputfile In.mph -outputfile Out.mph
Tim
Reply | Reply with Quote | Send private message | Report Abuse
Rules and guidelines

