Getting and building Fluidity

Transcription

Getting and building Fluidity
Getting and building Fluidity
Jon Hill1
1 - Dept of Earth Science and Engineering, Imperial College London
Jon Hill
Fluidity
Outline
About today
Getting Fluidity
Configuring and building
Installing
Installing
Updating
Jon Hill
Fluidity
Today...
...we will learn how to:
I Build Fluidity
I Make a mesh
I Set up a Fluidity simulation
I Run a Fluidity simulation
I Look at the output
I Run Fluidity in parallel
Jon Hill
Fluidity
Where to get Fluidity
I
I
I
Prebuilt Debian package
Bzr
Source code archives (.tgz)
Important information in the Fluidity manual
Jon Hill
Fluidity
Bzr
cd / data /
mkdir < username >
cd < username >
bzr co lp : fluidity
Jon Hill
Fluidity
Launchpad
http://launchpad.net/fluidity
Jon Hill
Fluidity
Launchpad
http://launchpad.net/fluidity
Jon Hill
Fluidity
Launchpad
http://launchpad.net/fluidity
Jon Hill
Fluidity
Launchpad
http://launchpad.net/fluidity
Jon Hill
Fluidity
Launchpad
http://launchpad.net/fluidity
Jon Hill
Fluidity
Buildbot
http://buildbot-ocean.ese.ic.ac.uk:8080/waterfall
Jon Hill
Fluidity
Configure
Set up compile-time options, such as:
I External non-LGPL libraries
I Non-standard libray locations
I Compiler flags
I Debugging
cd fluidity
./ configure -- help
Jon Hill
Fluidity
Configure
Before configuring:
module load petsc - gcc4
./ configure -- enable -2 d - adaptivity
Jon Hill
Fluidity
Python
export PYTHONPATH = $PYTHONPATH :/ data / fluidity / python
Jon Hill
Fluidity
Running Fluidity
bin/fluidity
Jon Hill
Fluidity
Building
make -j 4
make fltools
Jon Hill
Fluidity
Tests
make unittest
make test
make mediumtest
Jon Hill
Fluidity
Installing
make install
make install - diamond
make install - user - schemata
Jon Hill
Fluidity
Debian packaging
sudo apt - add - repository -y ppa : fluidity - core / ppa
sudo apt - get update
sudo apt - get -y install fluidity
Jon Hill
Fluidity
Updating
bzr up
M preprocessor / Populate_State . F90
bzr status
bzr status - SV
bzr diff filename
Jon Hill
Fluidity
Linux commands
I
I
I
I
Jon Hill
Fluidity
Change directories: cd directory/another/../
Make directory: mkdir directory
List contents: ls ., ls -l directory
Look at a text file: more file

Similar documents