First time using CERN libraries - help

AI Thread Summary
Starting a new particle physics class using CERN program libraries can be daunting, especially for those with limited experience in FORTRAN and UNIX/Linux. The CERNLIB website offers precompiled binaries for various platforms, including Windows and Mac, making it possible to work on assignments without needing a UNIX/Linux workstation. For the first assignment focused on random number generation, users should begin by downloading the appropriate files from the CERNLIB site, where installation instructions are provided, including guidance for Windows XP. Familiarizing oneself with the documentation available on the CERNLIB homepage is crucial for understanding how to integrate the libraries into a FORTRAN program. This foundational knowledge will help navigate the programming assignments throughout the semester.
beamerxl
Messages
1
Reaction score
0
I am starting a new particle physics class that requires us to use the CERN program libraries (http://cernlib.web.cern.ch/cernlib/" ). I've been to the website and am quite lost. I don't know what files I need to get from the website, or how to implement them into a program. It's been about three years since I've used FORTRAN, and even then the class I took was very basic (we never covered anything about how to incorporate program libraries). It also seems to be implied that I will need a UNIX/Linux workstation to do this, which I could access through our physics department, though I have never used UNIX/Linux before either, so if it is possible to do this on my Vista64 or Mac, that would be preferred.

Our first assignment is some basic random number generation, though I'm sure we will be tackling harder problems as the semester goes on.

Can anyone with experience in FORTRAN, UNIX/Linux, or CERNLIB offer some help? Basically, my primary questions are:

  • Can I do this in Vista64/Mac or do I need to get an account on our Linux machine?
  • If I need to use UNIX/Linux, what do I need to know to get started with a programming assignment?
  • What files do I need to download from the CERNLIB website, and what do I do with them?
  • How would I go about integrating these functions into a FORTRAN program?

Thanks in advance for any help you can give.
 
Last edited by a moderator:
Technology news on Phys.org
I haven't used CERNLIB before but I can't quite understand why you've got difficulty in figuring out what to do. Right there on the CERNLIB front page is a downloads link, together with the rather helpful statement

CERNLIB said:
The recommended way to install CERNLIB is from the preinstalled distribution kits but it is also possible to INSTALL it from the source files.

Clicking on the link, one finds that there exist clearly indicated precompiled binaries of the CERNLIB libraries for all manner of platforms, including Windows and OS X. This is precisely what you want. Indeed, the installation instructions at the top of the page are for Windows XP.

As to how you go about actually using the libraries, a good place to start would be to read the documentation, all of which is on the project homepage.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top