Find Docs

Astronomical Applications Department, U.S. Naval Observatory - NOVASC (Page 22)

Wodocs >> Science : Astronomy >> Astronomical Applications Department, U.S. Naval Observatory NOVASC Page 22
Astronomical Applications Department, U.S. Naval Observatory - NOVASC
instructions are offered only as a guideline ­ they provides a specific example of how the mixed-language
files were handled successfully on an IBM RISC System 6000 Unix workstation.
1. Create a single file with all of the JPL Fortran ephemeris access subroutines. Name it
jplsubs.f
.
2. Compile the Fortran file without invoking the linkage editor. This creates the object file
jplsubs.o.
The Fortran compiler/linker is
xlf
.
xlf -c jplsubs.f
3. Compile, again without invoking the linkage editor, the C files
novas.c
,
novascon.c
,
solsys2d.c
. This creates the object files
novas.o
,
novascon.o
,
solsys2d.o
:
xlc -c -lm novas.c novascon.c solsys2d.c
The C compiler/linker is
xlc
. The
-lm
option specifically searches the math library.
4. Finally, compile the main function and link it with the object files:
create executable named "app"
search the C math library
search the Fortran
libraries (xlf90)
main function
object files
search in this directory
for -l libraries
xlc -L/usr/lib -lm -lxlf90 -o app main.c novas.o novascon.o solsys2d.o jplsubs.o
In this example, the resulting executable file is named "app." Note especially the use of the
-l
option to force the C compiler/linker to search the Fortran libraries for unresolved references.
Important Note
It is strongly recommended that results obtained from your specific implementation of NOVAS-C
and solarsystem version 2D be checked by comparing to corresponding values published in the
Astronomical Almanac, or by comparing to results obtained from the Fortran version of NOVAS using
subroutine
SOLSYS
version 2-DA.

<< Previous       1 .. 15 16 17 18 19 20 21 22 23 24       Next >>



Other Documents:
novas c 2 doc, Beam Comp Example, moonpoly 2002, Newcomb, Newcomb Manual, Data Flow Diagrams, participant list, vondrak, zacharias, curvpath, pm AAS poster, Gaussian Distribution, Linear Least Squares, Sensitivity Integral, 3 D plot fits, lyap2, NAO 150, Rotate Vector, lyapcalc, wedges, Scifull, Precession Memo, Precession Maple, Curves 3 D, NOVAS 2004 Overview, NOVAS 2006 Overview, thesis, Ranson,


WODocs | |
All rights reserved. wodocs.comİ 2009
WODocs


New Docs

Documents Category:
Arts (Design, Movies, Music, Radio, Television)
Automotive (Cars, Marine, Motorcycle, ATV, Snowmobiles)
Business (Biotechnology and Pharmaceuticals, Chemicals, Construction and Maintenance, Materials, Real Estate, Services)
Electronics (Computers, Motion Control, Power Supply)
Games (Board, Family, Party, Card, Construction, RC Toys)
Health (Animalm, Beauty, Healthcare, Medicine, Pharmacy, Surgery, Weight Loss)
Home (Accessories, Cooking, Decor and Design, Electrical, Family, Pets)
News (Newspapers, Sports, Television)
Recreation (Collecting, Hiking, Scouting, Survival, Travel)
Reference (Education, Libraries and Archives, Museums)
Science (Agriculture, Astronomy, Biology, Chemistry)
Shopping (Antiques and Collectibles, Clothing, Flowers, Food, Home and Garden)
Sports (Bicycle, Snowboard, Skiing, Other)