Skip to content

Commit 5d8f78c

Browse files
author
hhiester
committed
deleting initialisation as none of tools are used any longer.
Updating configure, config.in and Makefile.in
0 parents  commit 5d8f78c

File tree

3,076 files changed

+2378437
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,076 files changed

+2378437
-0
lines changed

ADmain.cpp

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/* Copyright (C) 2006 Imperial College London and others.
2+
3+
Please see the AUTHORS file in the main source directory for a full list
4+
of copyright holders.
5+
6+
Prof. C Pain
7+
Applied Modelling and Computation Group
8+
Department of Earth Science and Engineering
9+
Imperial College London
10+
11+
12+
13+
This library is free software; you can redistribute it and/or
14+
modify it under the terms of the GNU Lesser General Public
15+
License as published by the Free Software Foundation,
16+
version 2.1 of the License.
17+
18+
This library is distributed in the hope that it will be useful,
19+
but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21+
Lesser General Public License for more details.
22+
23+
You should have received a copy of the GNU Lesser General Public
24+
License along with this library; if not, write to the Free Software
25+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26+
USA
27+
*/
28+
29+
#include "Usage.h"
30+
#include "fmangle.h"
31+
32+
#include <stdio.h>
33+
#include <stdlib.h>
34+
#include <errno.h>
35+
36+
#include <unistd.h>
37+
38+
39+
extern "C" {
40+
#define adjoint_fc F77_FUNC(adjoint, ADJOINT)
41+
void adjoint_fc(const char *, const int *);
42+
43+
#ifdef USING_GFORTRAN
44+
/* gfortran hack to ensure 4-byte record marker for unformatted files */
45+
void _gfortran_set_record_marker(int);
46+
#endif
47+
}
48+
49+
int main(int argc, char **argv){
50+
#ifdef HAVE_MPI
51+
// This must be called before we process any arguments
52+
MPI::Init(argc,argv);
53+
54+
// Undo some MPI init shenanigans
55+
chdir(getenv("PWD"));
56+
#endif
57+
58+
#ifdef USING_GFORTRAN
59+
/* gfortran hack to ensure 4-byte record marker for unformatted files */
60+
_gfortran_set_record_marker(4);
61+
#endif
62+
63+
// Get any command line arguments.
64+
ParseArguments(argc, argv);
65+
66+
if(atoi(fl_command_line_options["verbose"].c_str()) >= 2){
67+
print_version(std::cout);
68+
}
69+
70+
// Initialise PETSc (this also parses PETSc command line arguments)
71+
PetscInit(argc, argv);
72+
73+
// Start fortran main
74+
if(fl_command_line_options.count("simulation_name")){
75+
int filenamelen = fl_command_line_options["simulation_name"].size();
76+
adjoint_fc(fl_command_line_options["simulation_name"].c_str(), &filenamelen);
77+
}else{
78+
usage(argv[0]);
79+
exit(-1);
80+
}
81+
82+
#ifdef HAVE_PETSC
83+
PetscFinalize();
84+
#endif
85+
86+
#ifdef HAVE_MPI
87+
MPI::Finalize();
88+
#endif
89+
90+
exit(0);
91+
}

AUTHORS

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
Fluidity was originally written by Prof. Chris Pain. It has
3+
subsequently been contributed to by the following:
4+
5+
Institutions
6+
------------
7+
8+
Imperial College London
9+
University of Oxford
10+
University of Reading
11+
National Oceanography Centre Southampton
12+
13+
Individuals
14+
-----------
15+
16+
Peter Allison
17+
Elsa Aristodemou
18+
Tim Bond
19+
Gheorghe-Teodor Bercia
20+
Lucy Bricheno
21+
Andrew Buchan
22+
Adam Candy <[email protected]>
23+
Gareth Clay
24+
Gareth Collins
25+
Colin Cotter <[email protected]>
26+
Rhodri Davies <[email protected]>
27+
Jason Dunstall
28+
Matthew Eaton
29+
Fangxin Fang <[email protected]>
30+
Patrick Farrell <[email protected]>
31+
David Ham <[email protected]>
32+
33+
Jefferson Gomes
34+
Gerard Gorman <[email protected]>
35+
Daryl Harrison
36+
Shan Jiang
37+
Stephan Kramer
38+
Hedong Liu
39+
Ben Martin
40+
Bryan Miles
41+
Julian Mindel
42+
Dimitrios Pavlidis
43+
Ralph Perpeet
44+
Matthew Piggott <[email protected]>
45+
Hubert Plociniczak
46+
Philip Power
47+
Mariano Sallito
48+
Jon Saunders
49+
Sabu Shahdatullah
50+
Brendan Tollit
51+
Hongbin Wang
52+
Martin Wells
53+
Matthew Whitworth
54+
Cian Wilson
55+
Adrian Umpleby <[email protected]>

INSTALL

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
INSTALL for FLUIDITY
2+
3+
To build and install fluidity you first need to create a Makefile via
4+
the supplied configure script.
5+
6+
> ./configure
7+
8+
For a complete list of configuration options, consult the configure's
9+
help.
10+
11+
> ./configure --help
12+
13+
In particular you may want to set your F77 and F90 enviroment
14+
variables to force the selection of a particular compiler for your
15+
system. You may also wish to specify an install path.
16+
17+
After this you just need to:
18+
19+
> make
20+
> make install
21+
22+
Other specific make rules are also available. These are:
23+
all - Make and install everything
24+
fltools - Builds a set of tools that can be used on
25+
FLUIDITY data.
26+
27+
install - Install everything
28+
install_fluidity - Install FLUIDITY binary libraries and include files
29+
install_tools - Install FLUIDITY's compiled tools and scripts
30+
31+
clean - Removes all libaries associated with current
32+
build.
33+
very_clean - Removes all binaries
34+
35+
help - Prints out a small help message

0 commit comments

Comments
 (0)