Published online by Cambridge University Press: 15 December 2009
How to compile and execute Pecube
There are eight Fortran90 routines in the Pecube package (see Table A8.1). You must have a Fortran90 compiler properly installed on your computer to run Pecube. Pecube comes with a makefile file, which can be used on a Unix machine to compile and link the various routines. On other systems, follow the instructions that came with your compiler.
Note that Pecube is a stand-alone package, and does not require any mathematical or graphic library.
Setting up a problem for Pecube can be done in one of two ways: write the information in an input file (Pecube.in) created by the user, or use the subroutine create_pecube_in to do so. In both cases, Pecube will read the necessary information from an input file called Pecube.in. If you wish to use the first option you have to comment out the line call create_pecube_in at the top of Pecube.f90 before compiling, otherwise, Pecube will overwrite the input file you have created!
The input file
The input file must contain the following.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.