EMS: undefined variable

Forum dedicated to older versions of EMS package (WRFEMS v3.2, v3.1 or older). Support is user-to-user based, so please help others if you can.
Post Reply
Wreenen
Posts: 5
Joined: Wed May 30, 2012 1:19 pm

EMS: undefined variable

Post by Wreenen » Wed May 30, 2012 1:27 pm

Hello,

I already tried to install wrf-ems a few times, every time a changed someting i propably did wrong. But at the end i again get an error.

I installed wrf-ems v 3.2.1.5.45beta
to try if the model was installed well I gave this command:

> cd $EMS

the error the PC gives me:

> EMS: Undefined variable

I tried to change some things in EMS.cshrc and .cshrc but I can´t fix the problem. Is there anyone who can help me with this?

Thanks in advance

meteoadriatic
Posts: 1560
Joined: Wed Aug 19, 2009 10:05 am

Re: EMS: undefined variable

Post by meteoadriatic » Wed May 30, 2012 3:05 pm

Hello...

it is hard to know what went wrong. Please give us some info...

1.) Operating system version?
2.) What is the directory path where you installed wrfems? Is it /usr1/wrfems or something different?
3.) Output of "ls -all /usr1/wrfems" or whichever path is it

then we can continue to investigate.

Wreenen
Posts: 5
Joined: Wed May 30, 2012 1:19 pm

Re: EMS: undefined variable

Post by Wreenen » Thu May 31, 2012 2:54 pm

Here some more information:

1.) operating system: Ubuntu 12.04 LTS
2.) directory path: /usr1/wrfems/
3.) Output:

> drwxr-xr-x 12 wrfems wrfems 4096 May 30 15:30 ./
> drwxrwxrwx 3 wrfems root 4096 May 25 18:05 ../
> drwxr-xr-x 2 wrfems wrfems 4096 Apr 30 23:02 bin/
> drwxr-xr-x 8 wrfems wrfems 4096 Apr 30 23:02 conf/
> -rwxr-xr-x 1 wrfems wrfems 1532 May 30 15:30 .cshrc*
> -rwxr-xr-x 1 wrfems wrfems 1524 May 30 15:16 .cshrc~*
> drwxr-xr-x 6 wrfems wrfems 4096 May 25 18:25 data/
> drwxr-xr-x 6 wrfems wrfems 4096 Apr 30 23:02 docs/
> drwxr-xr-x 4 wrfems wrfems 4096 Apr 30 23:02 domwiz/
> -rwxr-xr-x 1 wrfems wrfems 10026 May 30 15:30 EMS.cshrc*
> -rwxr-xr-x 1 wrfems wrfems 10022 May 30 15:16 EMS.cshrc~*
> drwxr-xr-x 2 wrfems wrfems 4096 May 25 19:08 logs/
> drwxr-xr-x 3 wrfems wrfems 4096 May 25 18:05 releases/
> drwxrwxr-x 2 wrfems wrfems 4096 May 25 19:08 runs/
> drwxr-xr-x 8 wrfems wrfems 4096 May 24 22:52 strc/
> drwxr-xr-x 15 wrfems wrfems 4096 May 25 19:06 util/

the files .cshrc and EMS.cshrc are there twice, because I tried to fix the problem by changing something in those files. But it didn´t work :(

If you noeed some more information, just say it.

meteoadriatic
Posts: 1560
Joined: Wed Aug 19, 2009 10:05 am

Re: EMS: undefined variable

Post by meteoadriatic » Thu May 31, 2012 7:53 pm

So far so good... now, when you login as wrfems user, do you login into bash or tcsh shell?

And, what is output od "env | grep EMS", from wrfems user's shell?

Wreenen
Posts: 5
Joined: Wed May 30, 2012 1:19 pm

Re: EMS: undefined variable

Post by Wreenen » Fri Jun 01, 2012 1:54 pm

when I log in my shell is tcsh I also checked with

Code: Select all

 echo $SHELL
it gives:

Code: Select all

 /bin/tcsh
When I type ¨env | grep EMS¨ I get nothing. I already saw in other topics that this isn OK.
So here is some other information:

1.) wrfems account is set as ¨administator¨
2.) location of wfrems: /usr1/wrfems/ in the root directory
3.) in the file .cshrc the source of EMS.cshrc is set as:

Code: Select all

if (-f /usr1/wrfems/EMS.cshrc) source /usr1/wrfems/EMS.cshrc
4.) the file EMS.cshrc also contains the line:

Code: Select all

setenv EMS /usr1/wrfems
Need some more information? And again thanks for helping me.

wrf_model
Posts: 55
Joined: Wed Feb 17, 2010 9:38 pm

Re: EMS: undefined variable

Post by wrf_model » Fri Jun 01, 2012 3:24 pm

Wreenen wrote:when I log in my shell is tcsh I also checked with

Code: Select all

 echo $SHELL
it gives:

Code: Select all

 /bin/tcsh
When I type ¨env | grep EMS¨ I get nothing. I already saw in other topics that this isn OK.
So here is some other information:

1.) wrfems account is set as ¨administator¨
2.) location of wfrems: /usr1/wrfems/ in the root directory
3.) in the file .cshrc the source of EMS.cshrc is set as:

Code: Select all

if (-f /usr1/wrfems/EMS.cshrc) source /usr1/wrfems/EMS.cshrc
4.) the file EMS.cshrc also contains the line:

Code: Select all

setenv EMS /usr1/wrfems
Need some more information? And again thanks for helping me.
You can try in terminal window:

csh
source /usr1/wrfems/EMS.cshrc

After you can try run WRF-EMS commands.

meteoadriatic
Posts: 1560
Joined: Wed Aug 19, 2009 10:05 am

Re: EMS: undefined variable

Post by meteoadriatic » Fri Jun 01, 2012 5:21 pm

Wreenen wrote:1.) wrfems account is set as ¨administator¨
I smell trouble right here. Can you explain what that mean? You log in as "administrator" and try to run wrfems that is located in /usr1/wrfems and is owned by wrfems user? If I'm correct, this is the reason why isn't working.

Wreenen
Posts: 5
Joined: Wed May 30, 2012 1:19 pm

Re: EMS: undefined variable

Post by Wreenen » Sat Jun 02, 2012 3:17 pm

I think thatś exactly what I mean. What is the best thing I can do against it?


When I do it with csh instead of tcsh it worked and I already did the benchmark. Is there a problem using csh i.s.o. tcsh? Because I readed this in another topic.

Thanks again

meteoadriatic
Posts: 1560
Joined: Wed Aug 19, 2009 10:05 am

Re: EMS: undefined variable

Post by meteoadriatic » Sat Jun 02, 2012 3:25 pm

Wreenen wrote:I think thatś exactly what I mean. What is the best thing I can do against it?


When I do it with csh instead of tcsh it worked and I already did the benchmark. Is there a problem using csh i.s.o. tcsh? Because I readed this in another topic.

Thanks again
It works if you source those files.

Login as wrfems, not as administrator, and then it should work out of box.

Wreenen
Posts: 5
Joined: Wed May 30, 2012 1:19 pm

Re: EMS: undefined variable

Post by Wreenen » Mon Jun 04, 2012 10:37 am

OK I think I didn't understood you right, because I mean that my account 'wrfems' has the rights of administrator, so that should work in the right way.

Isn't it a problem when I use csh instead of tcsh, because I read in some topics that wrf-ems can have some problems with csh. I already did the benchmark and no problems did occur using csh.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest