NERSC logo National Energy Research Scientific Computing Center
  A DOE Office of Science User Facility
  at Lawrence Berkeley National Laboratory
 
PackagePlatformVersionModule Docs
cernlib franklin 2006 cernlib  Vendor
cernlib jacquard 2006 cernlib  Vendor
cernlib pdsf 2001  Vendor
cernlib pdsf 2002  Vendor
(*) Denotes limited support

CERNLIB Physics Library

The CERN Program Library is a large collection of general purpose programs maintained and offered in both source and object code form on the CERN central computers. Most of these programs were developed at CERN and are therefore oriented towards the needs of a physics research laboratory.

The library is provided as is and has not been extensively tested. Problems should be reported to the NERSC consulting staff.

Those who are seeking general mathematical subroutines are strongly encouraged to instead use NERSC-provided mathematical libraries. The material in CERNLIB should only be relied upon for its unique physics content.

How to use CERNLIB

% module load cernlib 
% xlf -I$INC -L$CERNLIB -llibname ...  
% cc -I$INC -L$CERNLIB -llibname ...  

where libname is a name of a CERNLIB component, e.g., kernlib, packlib, geant, etc.

On Franklin and Jacquard, CERNLIB was build using GCC. To link against object code build with other compilers link with the g2c libary, e.g.: -lg2c.

Documentation

CERN maintains a CERN Program Library Web page. The Documentation link there provides access to HTML and PostScript forms of the manuals for each of the major parts of CERNLIB, and to short writeups of each subroutine.


LBNL Home
Page last modified: Fri, 29 Feb 2008 19:30:50 GMT
Page URL: http://www.nersc.gov/nusers/resources/software/libs/physics/
Web contact: webmaster@nersc.gov
Computing questions: consult@nersc.gov

Privacy and Security Notice
DOE Office of Science