[MITgcm-support] Help.. Install MITgcm on Mac OS

smaeilpour saeid_gal at yahoo.com
Wed Nov 16 12:03:37 EST 2016


Hi again
so are these instructions true in mac terminal?

../../../tools/genmake2 -mods=../code -mpi -of=../../../tools/build_options/linux_amd64_gfortran+mpi_generic
make depend
make
export LD_LIBRARY_PATH=/usr/local/lib
cd ../input/
cp ../code/mitgcmuv ./
mpirun -np 4 ./mitgcmuv
./mitgcmuv > output.txt

best







--------------------------------------------
On Mon, 10/17/16, Dimitris Menemenlis <dmenemenlis at gmail.com> wrote:

 Subject: Re: [MITgcm-support] Help.. Install MITgcm on Mac OS
 To: "MITgcm Support" <mitgcm-support at mitgcm.org>
 Date: Monday, October 17, 2016, 5:03 PM
 
 Hi Saeid, lots of ways to
 install on Mac OS-X.
 
 Last
 time I installed natively (November 2015 on El Capitan)
 I had to get cvs (not 100% needed, but useful
 if you like to get updates)
 gfortran, and
 xcode.  So instructions are:
 
 - put cvs in /usr/local/bin from:
   http://jwooten37830.com/blog/?p=325
   http://jwooten37830.com/usr_4.2.zip
 
 # Install gfortran 5.2
 # https://gcc.gnu.org/wiki/GFortranBinaries
 # http://coudert.name/software/gfortran-5.2-Yosemite.dmg
 
 # Install Xcode from App
 Store
 xcode-select --install
 
 # Now you can use cvs to get
 code and run one of the verification experiments.
 # Instructions below assume you use sh or
 bash:
 export CVSROOT=':pserver:cvsanon at mitgcm.org:/u/gcmpack'
 cvs login # enter the CVS password:
 "cvsanon"
 cvs co MITgcm_code
 cvs co MITgcm/verification/testreport
 cvs co
 MITgcm/verification/tutorial_held_suarez_cs
 cvs co
 MITgcm/verification/global_ocean.cs32x15
 cd
 MITgcm/verification
 ./testreport -j 4 -t
 global_ocean.cs32x15
 
 
 >>>>>>>>>>>>>>
 
 More recently, I was
 introduced to the wonderful world of virtual machines by one
 of the MIT czars.
 In case you want to go the
 virtual machine route, here is instructions for a *buntu
 installation:
 
 # Set up a
 Lubuntu 16.04 virtual machine under VirtualBox
 #   Get VirtualBox from https://www.virtualbox.org/wiki/Downloads
 #   Get
 lubuntu-16.04.1-desktop-amd64.iso from https://help.ubuntu.com/community/Lubuntu/GetLubuntu
 #   Start VirtualBox and set-up
 virtual machine
 #     New
 #       Name: lubuntu-16.04
 #       Type: Linux
 #       Version: Ubuntu
 (64-bit)
 #       Memory size:
 2048 MB
 #       Create a
 virtual hard disk now
 #   
    Hard disk file type: VDI (VirtualBox Disk
 Image)
 #       Storage on
 physical hard disk: Fixed size
 #   
    File location and size: 16.00 GB
 #     Settings
 # 
      General
 #     
    Advanced
 #       
    Shared Clipboard: Bidirectional
 #           Drag'n'Drop:
 Bidirectional
 #   
    System/Processor
 #     
    Processors: 4 CPUs
 #     
    Execution Cap: 100%
 #   
    Storage
 #     
    Controller: IDE (click on circle with green
 plus)
 #         Choose disk:
 Downloads/lubuntu-16.04.1-desktop-amd64.iso
 #     Start
 
 # Install Lubuntu 16.04
 #   Download Updates; Install
 third-party software
 #   Erase
 disk and install Lubuntu
 #   Your
 name: WHATEVER
 #   Password:
 WHATEVER
 
 # Packages needed
 for VirtualBox to run smoothly
 sudo apt
 install virtualbox-guest-dkms
 sudo adduser
 heracles vboxsf
 sudo reboot
 
 # Extra packages needed to get
 and run MITgcm
 sudo apt install cvs
 sudo apt install gfortran
 sudo
 apt install libopenmpi-dev # needed for parallel run of
 MITgcm
 
 # Next you can load
 and run MITgcm, e.g.,
 export
 CVSROOT=':pserver:cvsanon at mitgcm.org:/u/gcmpack'
 cvs login # enter the CVS password:
 "cvsanon"
 cvs co MITgcm_code
 cvs co MITgcm/verification/testreport
 cvs co
 MITgcm/verification/tutorial_held_suarez_cs
 cvs co
 MITgcm/verification/global_ocean.cs32x15
 cd
 MITgcm/verification
 ./testreport -j 4 -t
 global_ocean.cs32x15
 ./testreport -j 4 -mpi
 -t global_ocean.cs32x15
 
 >
 On Oct 17, 2016, at 2:20 PM, smaeilpour <saeid_gal at yahoo.com>
 wrote:
 > 
 > Hello,
 > my name is saeid, I am a student of
 waterloo of university in canada.I'm trying to work with
 MITgcm  Model on Mac OS, , how can I install Mitgcm on it,
 If I drop it Desktop of Mac OS ,  will it be run? Or method
 to do so for that? would you helpe me?
 >
 
 > Thank you
 >
 saeid
 
 
 _______________________________________________
 MITgcm-support mailing list
 MITgcm-support at mitgcm.org
 http://mitgcm.org/mailman/listinfo/mitgcm-support
 



More information about the MITgcm-support mailing list