climateprediction.net home page

The world's largest climate forecasting experiment for the 21st century.

How to run the CP Vis program for Mac users


Advanced search

Questions and Answers : Macintosh : How to run the CP Vis program for Mac users

AuthorMessage
Snake Doctor
Send message
Joined: Jul 23 05
Posts: 10
Credit: 116,950
RAC: 5
Message 15255 - Posted 20 Aug 2005 18:50:26 UTC

    I apologize to those of you who may find these instructions too detailed, but they are written for people who may not be familiar with the details of the system, and who may never have seen the command line interface for the Mac.

    Getting Started

    These instruction will be much easier if you set your Mac windows to display as lists of files. To do this when a disk or folder window opens look in the upper left corner. You will see a few icons there. There will be a right and left pointing arrow and just to the right of that are three icons. Click on the center icon of those three to set the list mode. As you follow these directions if a window opens that is not in list mode, repeat this adjustment. This will allow you to open folders by clicking on the small pointer that will appear next to each folder name and prevent the system from opening a separate window for each folder as you go. It will also allow you to see the relationships between all the folders.

    1) Locate the climate prediction folder - To find the folder go tho the top level directory of your startup disk by double clicking on the disk icon on your desk top, locate the \"Library\" folder and click on the small arrow to the left of the folder icon to view the contents. Inside the \"Library\" folder you will find a folder named \"Application Support\", click on the arrow to view its contents. Inside the \"Applications Support\" folder you will see a folder named \"BOINC Data\", click on the arrow to view its contents. Inside the \"BOINC Data\" folder you will find a folder named \"projects\", click on the arrow to view its contents and you will find the \"climateprediction.net\" folder, click on the arrow to view its contents.

    2) Near the bottom of the files listed in the \"climateprediction.net\" folder you will see a file named \"vis\". This is the ClimatePrediction model program that you must run in the terminal window using the \"Terminal\" utility program which can be found in the Utilities folder inside the \"Applications\" folder on your startup disk.

    First the climate prediction model must be loaded in memory on the system for the model visualization to work properly. This means that the system must be actively running the model work unit or at least have the model loaded in the system memory. You can avoid this limitation if you set your preferences option for \"Leave applications in memory while preempted\" on the climate prediction website to \"Yes\". However if the model is not actively processing it will not show all of the details it would otherwise.

    Here is the easiest way to run the model.

    First start up the \"terminal\" application from the \"Utilities\" folder. This will open the terminal window and a prompt will appear. By default the window opens attached to and able to use resources in your Mac user folder, so the prompt should have the name of your system followed by your user login ID as the prompt.

    Last login: Sat Aug 20 13:13:05 on ttyp1
    Welcome to Darwin!
    Your-Computer:~ YourID$

    Move the window to one side of your screen to make room for the next step.

    Now open the \"climateprediction.net\" folder as described above. and move it over so you can see the terminal window.

    On the command line in the terminal window type in \"cd \" (the letters \"cd\" followed by a space). Go to the open disk window and grab the \"climateprediction.net\" folder icon and drag it to the terminal window and drop it there (all this does is type the directory path for you). The directory path should now appear in the terminal window so now the command line will look something like this -

    Your-Computer:~ YourID$ cd /Library/Application\\ Support/BOINC\\ Data/projects/climateprediction.net

    Press the \"return\" key on your keyboard. The system should respond with -

    Your-Computer:/Library/Application Support/BOINC Data/projects/climateprediction.net YourID$

    Now go back to the open \"climatprediction.net\" folder. and grab and drag the \"vis\" program we located above into the terminal window and drop it. Once again this is only to avoid a lot of typing and possible typing errors. Your command line should now look something like this-

    Your-Computer:/Library/Application Support/BOINC Data/projects/climateprediction.net YourID$ /Library/Application\\ Support/BOINC\\ Data/projects/climateprediction.net/viz

    Press the return key on your keyboard. The system should respond with -

    Searching for active shared memory
    Using Model ID Your_model_ID number_here

    Once the model is running

    Assuming the \"vis\" program finds a valid model it will open the model in a new window. There are a number of commands that you can use to change the model display. Type the letter \"H\" and the available commands will appear in the model window. You can also grab the globe with your mouse and rotate or spin it.

    To exit the model window and close the model press the \"ESC\" key in the upper right corner of your keyboard.

    Viewing different models on your system

    If you are running more than one model on your system the \"vis\" program will to allow you to enter the model number for any of the models you are running as a command line option to pick the model it will display. You do this by simply adding the model number after you drag and drop the \"vis\" program into the terminal window and before you press the return key. So the command would look like this- (note there is a space between \"Vis\" and \"Model_Number\")

    Your-Computer:/Library/Application Support/BOINC Data/projects/climateprediction.net YourID$ /Library/Application\\ Support/BOINC\\ Data/projects/climateprediction.net/viz Model_Number

    Unable to attach to shared model

    If the model is not in memory (either running or kept in memory while the system processes other work) you will get the message-

    Using cmd line arguments Model_Number
    Unable to attach to shared memory

    You will either have to reset your preferences as described above on the Climateprediction web site, and/or wait for the model to restart on the next processing cycle.

    Enjoy
    Phil



    http://www.boincsynergy.com/images/stats/comb-2033.jpg

    Andrew
    Send message
    Joined: Oct 31 04
    Posts: 17
    Credit: 99
    RAC: 0
    Message 15729 - Posted 6 Sep 2005 9:34:52 UTC

      Last modified: 6 Sep 2005 16:25:31 UTC

      Snake, thanks

      I don't see the folder named "BOINC Data". Where do I get it from? When I downloaded the program all that arrived was the folder boinc_4.43_darwin, continaing 2 files: boinc and boinc_cmd. I'm using an iMac G4, 1GHz machine and I'm pretty desperate to get ging as I have signed up for the OU course. I have CP Control successfully running and I've been using a stand alone version of SETI@home for some years now (i.e. prior to loading CP Control).

      Any help would be gratefully received.

      Andrew

      [AF>Linux]Arnaud
      Send message
      Joined: Sep 3 04
      Posts: 268
      Credit: 256,045
      RAC: 0
      Message 15736 - Posted 6 Sep 2005 17:08:58 UTC

        Last modified: 6 Sep 2005 17:29:28 UTC

        Hi,Andrew
        I'm not a Mac user but since you haven't any data folder, it seems to me that you're not attached to the CPDN project.
        Have you created an account (<a href="http://climateapps2.oucs.ox.ac.uk/cpdnboinc/create_account_form.php">here</a>), received an email with an ID key and attached to the project ?
        Boinc is just a client that manage the different projects.
        Seti@home classic is now closed and has been replaced by SetiBOINC which uses Boinc too. Boinc enables you to run several projects at the same time by sharing the CPU time.
        For more info about BOINC:<a href="http://boinc.berkeley.edu/participate.php">here</a>
        You should also visit the Boinc Wiki, that should help you to attach if you're lost (see the Wiki link in my signature)
        HTH.
        -----------------------------------------------
        <a href="http://boinc-doc.net/boinc-wiki/index.php?title=Main_Page">Boinc Wiki</a>
        <a href="http://forum.boinc.fr/">L'Alliance Francophone</a>

        Andrew
        Send message
        Joined: Oct 31 04
        Posts: 17
        Credit: 99
        RAC: 0
        Message 15738 - Posted 6 Sep 2005 17:42:45 UTC - in response to Message 15736.

          Thank you Arnaud. Yes, I registered in October 2004, but was put off by the diffiuclty of getting anything of the climatepredict to work, especially after the ease with which SETI@home loaded and ran.

          I did receive a message with a long string of numbers for a Account ID and the URL:http://climateprediction.net. I have entered both into the CP Control prefences, but to no avail. I've also used the buttons to attach a project but nothing happens. CP Control does run, but after two days it still shows 0%.

          What I couldn't find out, both from the climatepredict forums and from your WIKI link which I discovered earlier in a forum, is how to attach to a project once the account and CP Control are active.

          It looks like Caroline Webb had a similar problem, and I was about to work through that thread to see if I could get anywhere. Shall I do that, rather than subject you to more question-answer-question correspondence?


          Andrew

          [AF>Linux]Arnaud
          Send message
          Joined: Sep 3 04
          Posts: 268
          Credit: 256,045
          RAC: 0
          Message 15740 - Posted 6 Sep 2005 18:05:05 UTC

            Last modified: 6 Sep 2005 18:11:05 UTC

            UNfortunately, I'll not be able to help you further because I have no Mac (PC under Linux). but as Linux is a unix OS like Mac there are some similarities.

            What I can suggest you is that you try to run the command line version of BOINC and attach with the command: ./boinc -attach_project URL IDkey
            So you just have to cd to your Boinc folder and type:
            ./boinc -attach_project http://climateprediction.net xxxxxxxxxxxxxxxxxxxxxxxxxxxx

            by replacing xxxxxxxxxxxxxxxxxxxxxx by your ID key


            please read these pages (especially the 1st one, it should help you).
            <a href="http://boinc-doc.net/site-boinc/oman-app/inst-mac.php5">http://boinc-doc.net/site-boinc/oman-app/inst-mac.php5</a>
            http://boinc.berkeley.edu/client_unix.php
            http://boinc.berkeley.edu/bare_core.php

            -----------------------------------------------
            <a href="http://boinc-doc.net/boinc-wiki/index.php?title=Main_Page">Boinc Wiki</a>
            <a href="http://forum.boinc.fr/">L'Alliance Francophone</a>

            Andrew
            Send message
            Joined: Oct 31 04
            Posts: 17
            Credit: 99
            RAC: 0
            Message 15742 - Posted 6 Sep 2005 18:10:02 UTC - in response to Message 15738.

              Last modified: 6 Sep 2005 18:10:21 UTC

              Arnaud

              It's me again already. I followed Snake's advice to Caroline Webb who had a similar problem: i.e. i linked to the SETI GUI and had instant success. I take it that I don't still need CP Control, now that I have the full Boinc program?

              Andrew

              [AF>Linux]Arnaud
              Send message
              Joined: Sep 3 04
              Posts: 268
              Credit: 256,045
              RAC: 0
              Message 15744 - Posted 6 Sep 2005 18:20:07 UTC

                Last modified: 6 Sep 2005 18:30:12 UTC

                What version of BOINC do you have ?
                I suggest you download the 4.43 version with standard GUI, it should help you (read the instruction): http://boinc.berkeley.edu/download.php
                -----------------------------------------------
                <a href="http://boinc-doc.net/boinc-wiki/index.php?title=Main_Page">Boinc Wiki</a>
                <a href="http://forum.boinc.fr/">L'Alliance Francophone</a>

                Andrew
                Send message
                Joined: Oct 31 04
                Posts: 17
                Credit: 99
                RAC: 0
                Message 15745 - Posted 6 Sep 2005 18:32:33 UTC - in response to Message 15744.

                  Yes, I have the 4.43 version with standard GUI: works like a dream! Thanks for the help.

                  Andrew

                  Post to thread

                  Questions and Answers : Macintosh : How to run the CP Vis program for Mac users




                  Copyright © 2002-2014 climateprediction.net