Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Wed Aug 15, 2018 5:26 am




Post new topic Reply to topic  [ 8 posts ] 

All times are UTC

Author Message
PostPosted: Wed Jul 13, 2016 9:40 am 
Offline

Joined: Mon Jul 04, 2016 1:31 pm
Posts: 15
Location: Inha University
Hi everyone, newbie in ROMS here.

I understand that ROMS runs in a UNIX environment. I currently have Windows as the OS and am admittedly not yet familiar with the UNIX environment.

Now, I'm torn between:

a) starting ROMS with a UNIX environment (this means I will also have to do my other ROMS-unrelated works with UNIX, which would be pretty inconvenient as I am really used to using Windows all my life)

or

b) just using a Linux emulator (Cygwin) for Windows and hopefully run ROMS with it (will I encounter many technical problems in the future if I do this?)

I am also considering an additional option: c) Try to run ROMS with Cygwin in Windows at first. And when I've got my grasp on ROMS and will actually have to do intense modeling, that's the time I purchase a separate computer with UNIX as the OS.

What do you guys think? Sorry if my dilemma seems pretty basic. Some enlightenment and tips (preferably detailed) will be greatly appreciated.

Thank you very much!


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 13, 2016 12:17 pm 
Offline

Joined: Wed Dec 31, 2003 6:16 pm
Posts: 700
Location: USGS, USA
running roms in cygwin these days is actually a lot easier than it used to be. When you download cygwin, you can also get gfortran compiler (nice but slower than ifort and pgi) and you can also get the netcdf libraries all precompiled with that version of gfortran. you need to make sure you select other certain options in cygwin for the download such as gmake, subversion. I think it also has mpi with it (or you can download MPICH2 for free - precompiled for windows). We also purchased ifort and installed that for windows to test a different compiler, and of course we also have pgi on a linux cluster so we can test different systems.

-john


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 13, 2016 2:02 pm 
Offline

Joined: Mon Jul 04, 2016 1:31 pm
Posts: 15
Location: Inha University
jcwarner wrote:
running roms in cygwin these days is actually a lot easier than it used to be. When you download cygwin, you can also get gfortran compiler (nice but slower than ifort and pgi) and you can also get the netcdf libraries all precompiled with that version of gfortran. you need to make sure you select other certain options in cygwin for the download such as gmake, subversion. I think it also has mpi with it (or you can download MPICH2 for free - precompiled for windows). We also purchased ifort and installed that for windows to test a different compiler, and of course we also have pgi on a linux cluster so we can test different systems.

-john


Thank you very much for your response, Sir! Highly appreciated. :)


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 14, 2016 5:15 am 
Offline

Joined: Fri Jan 08, 2010 7:22 pm
Posts: 135
Location: Theiss Research
A very appealing option is just becoming available: run ubuntu natively within windows 10. Search for "ubuntu windows 10" you will find plenty of info for example

https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/


It will be interesting to see how this option handles ROMS so if those first explorers can report back their findings that would be great.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 03, 2018 9:21 pm 
Offline

Joined: Fri Apr 02, 2004 4:46 pm
Posts: 35
Location: USGS, Woods Hole, USA
:D
The good news: Tarandeep Kalra and I successfully installed ROMS (COAWST version) in the bash console of Windows 10.

My version of Ubuntu in my bash window is not the latest (16.10 or higher is now available).
csherwood@IGSAGIEGWSCSH10:/mnt/d/u/sed_toy$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

The installation procedure is exactly the same as a real Ubuntu system (e.g. viewtopic.php?f=31&t=3830), and we made the same mistakes we always make, culminating in forgetting to put colons instead of spaces in LD_LIBRARY_PATH part of the .bashrc file, which now looks like this:

Code:
export zlib=/usr/local/zlib
export hdf5=/usr/local/hdf5
export CPPFLAGS="-I/usr/local/hdf5/include -I/usr/local/zlib/include -I/usr/local/netcdf/include"
export LDFLAGS="-L/usr/local/hdf5/lib -L/usr/local/zlib/lib -L/usr/local/netcdf/lib"
export LD_LIBRARY_PATH="/usr/local/hdf5/lib:/usr/local/zlib/lib:/usr/local/netcdf/lib"

export NetCDF=/usr/local/netcdf
export NETCDF_LIBDIR=/usr/local/netcdf/lib
export NETCDF_INCDIR=/usr/local/netcdf/include

export MCT_INCDIR=/home/csherwood/src/COAWST/Lib/MCT/mct
export MCT_LIBDIR=/home/csherwood/src/COAWST/Lib/MCT/mct
export MPEU_INCDIR=/home/csherwood/src/COAWST/Lib/MCT/mpeu
export MPEU_INCDIR=/home/csherwood/src/COAWST/Lib/MCT/mpeu

export=/usr/local/mpich2/bin:$PATH ; export PATH
export=/usr/local/netcdf/bin:$PATH ; export PATH


Now it runs find, and using VcXsrv to provide an X server,
Code:
sudo apt-get install ncview
provided use with the ability to have a quick look at the output of sedtoy.

:(
The bad news: We have not gotten mpiexec to run, so we are limited to running serial codes. The mpif90 part seems to work fine, and we can compile and run OceanM (actually, coawstM) with one processor, but we get this error when trying MPICH2:

csherwood@IGSAGIEGWSCSH10:/mnt/d/u/inlet_test$ mpiexec -np 2 -verbose ./coawstM coupling_inlet_test.in
host: IGSAGIEGWSCSH10
[mpiexec@IGSAGIEGWSCSH10] HYDU_sock_is_local (./utils/sock/sock.c:545): getifaddrs failed
[mpiexec@IGSAGIEGWSCSH10] main (./ui/mpich/mpiexec.c:280): unable to check if IGSAGIEGWSCSH10 is local

Compiling with -j 8 works fine.

Any suggestions on the MPI problem?

_________________
Chris Sherwood, USGS
1 508 457 2269


Top
 Profile  
Reply with quote  
PostPosted: Fri May 04, 2018 5:08 am 
Offline

Joined: Mon Oct 26, 2009 3:06 am
Posts: 11
Location: Portland State University
I assume this is a sincere question, rather than trolling to start a flame-war. Once you get over the modest (but never-ending) learning curve, you will find so much better tools are available in the native linux world. Your path will be easier if you bite the bullet and buy a decent book on linux system administration so that you understand the filesystem layout and all the basic commands. Of course cygwin is great, but it is kind of like replacing your modern gigabit ethernet with a dial-up modem to aol.com.

All the best,
Ed


Top
 Profile  
Reply with quote  
PostPosted: Fri May 04, 2018 6:58 pm 
Offline

Joined: Fri Jan 08, 2010 7:22 pm
Posts: 135
Location: Theiss Research
Ed, they are not using cygwin.

I don't have any help for your question, sorry to say. But wanted to mention that an alternative that will allow one to use a display is to instal Xming free software, double click that and that is it, you will be able to run your apps with display (so far tested octave and ncview). I have been using the linux subsystem since it was beta (about two years) and so far I have not missed anything a "normal" installation of ubuntu may be able to do. However, I have not used ROMS in last few years... Hopefully the problem reported above has a solution.


Top
 Profile  
Reply with quote  
PostPosted: Sat May 05, 2018 4:53 am 
Offline

Joined: Mon Oct 26, 2009 3:06 am
Posts: 11
Location: Portland State University
lol. Aha, I was replying to the OP. Just noticed it was from 2 yr ago.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group