aboutsummaryrefslogtreecommitdiff
path: root/plotlib/Readme
blob: 637ef2c88dd139f554c1d57465dd902dead44c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*********************************************************************** 
    Module:  Readme
 
    Copyright (C) 1996 Harold Youngren, Mark Drela 
 
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    Report problems to:    guppy@maine.com 
                        or drela@mit.edu  
***********************************************************************/ 

C     Version 4.46 11/28/01


Make the plotlib under Unix by:

  Before anything is compiled, the config.make file needs to be changed
  to reflect your compiler and library options.  Two versions of config.make
  are supplied (config.make.SP and config.make.DP) which contain options for 
  making single and double precision versions of the plotlib.  Note that there
  are sample declarations several architectures in the Makefile, you may need 
  to be comment or uncomment options for your machine. Note that under Unix 
  you can simply make a symbolic link to one of these config.make.xx files to 
  define config.make using:

  %ln -s config.make.SP config.make

  Then do the make using 
  % make 



Make the plotlib under Windoze:

  You need Visual C and either the Compaq Visual Fortran compiler or the Intel
  Fortran compiler.  You should check the options in Makefile.NT to ensure that
  they match your system.  The supplied files match the Intel Fortran compiler.

  Compile and link with command in DOS window: 
  C:\Xfoil\plotlib: cd win32
  C:\Xfoil\plotlib\win32: nmake /f Makefile.NT

  This places all the .obj files in the win32 directory and copies libPltxx.lib
  to the parent plotlib directory.

  Alternatively you could load all the files into a Visual Studio project and
  create the library that way.


To create plot library libPlt.a (single precision) you can normally just type:
  % make
  provided the file config.make matches your machine. The supplied config.make
  matches the config.make.SP single precision options file.

To create plot library libPltDP.a (double precision version):
  Link or copy file config.make.DP to config.make and check that the options
  match your machine.  Then type:
  % make

If you don't have a file config.make.DP your alternative is to to this:
  go into the config.make and uncomment the line 
#PLTLIB = libPltDP.a
  set the DP flag for your compiler (uncomment appropriate line) and then:
  % make


To install plot library libPlt.a:
  check the config.make and Makefile for proper install options and 
  destination for your system
  % make install


To create test, example and color selection programs (all optional):
  % make test

OR, go into the examples directory and do a:
  % make

if you want to put the examples in the parent library directory as well:
  % make test

To create the test and examples under Windoze:
  C:\Xfoil\plotlib: cd examples
  C:\Xfoil\plotlib\examples: nmake /f Makefile.NT



To set black-on-white video, define Unix variable as follows:
  % setenv XPLOT11_BACKGROUND white


To restore white-on-black video:
  % unsetenv XPLOT11_BACKGROUND




See the following files for more info:

 Doc           Discussion, sample application calls, some routine descriptions
 pltlib.inc    Description of all global plot data (for tinkering with source)

 plt_base.f    Routine headers describe call lists
 plt_font.f     "
 plt_util.f     "
 plt_color.f    "
 plt_3D.f       "

 sym/Readme    Description of vector font generation and/or modification

 Readme-examples    Description of test and example programs		
 Readme.absoft      Info on Absoft Linux f77 for Xplot11 compile

examples/Readme-examples