Getting and running 3d~def

Getting 3d~def

The standard source code may be downloaded via ftp from the Unix server:

beagle.ceri.memphis.edu

Login as 'anonymous' and use your email address as a password. Change directory to pub/gomberg (cd pub/gomberg) and you should find all the source codes:

3dmain.f
okada_sub.f
vector_output.f
xyz_output.f
sizes.inc
units.inc

object files and executable (called 3d, compiled on a SUN Sparc10 running Solaris):

[as above].o
3d

a Unix makefile for compiling:

makefile

and both an ascii and postscript version of the manual (and remember too that the manual is available via the online guide to 3d~def):

manual
postscript.manual

Note that the postscript and ascii versions of the manuals at the ftp site have not been updated for a while, and we recommend instead that you download the manual from the online 3d~def guide.
 
 
A slightly different version of the code and the executable is available via (user anonymous, password email) ftp from:
bluebottle.ceri.memphis.edu

cd to outgoing to find the code, etc. This version was compiled on a SUN Enterprise running Solaris, and differs by REQUIRING that the input file be called "input". This allows the program to more easily run in a no-hang-up batch mode.

We hope to have a makefile and an executable for the Irix 6.5 system soon.

 

Running 3d~def

Before compiling, be sure that the parameters 'MAX_ELEM' and 'MAX_PLN' in file sizes.inc are adequate for the models you will create. MAX_PLN is the maximum number of planes or elements (which get divided into sub-elements) in your model. MAX_ELEM is the maximum total  number of possible sub-elements in your model. It will be set by the element (plane) with the largest number of subelements; i.e., if MAXB1 and MAXB2 are the largest number of subelement divisions along strike and dip (on a single plane) then MAX_ELEM=MAXB1*MAXB2*NPLANE. This will determine the memory required by the program; the largest array has dimensions 3*MAX_ELEM*(3*MAX_ELEM+1) and each array member uses 4 bytes. (Memory usage is not optimal - and should be fixed in updated versions of 3DDEF!).
 
To compile on most standard unix systems, simply type 'make' and the object and executable files will be created in the same directory as the source codes.

 

You're ready to go!