Using JHTDB with C & Fortran

Download

This downloads a directory with sample Fortran (turbf.f90, mhdf.f90, channelf.f90, mixingf.f90) and C (turbc.c,
mhdc.c, channelc.c, mixingc.c) code,
and has been tested under various versions of Mac OS X, Linux, FreeBSD and Windows (under Cygwin).
The directory also includes several gSOAP wrapper functions that need not be modified.
Executing 'make' will build both the Fortran and C sample code.
Please take a look at the README file platform-specific notes.

Overview

We have written several routines which use the
gSOAP library to call JHTDB.

Limitations and Notes

Starting with the 2010-03 release, the library will automatically exit upon any network or database failure.
This change was made to prevent accidental use of invalid data.
See the included README for instructions on how to override this behavior.

Fortran Specific Notes

Character arrays (such as authkey and dataset) need to be passed
as C-style strings. This requires the addition of a NULL character at the end of the string,
for example:

Disclaimer: While many efforts have
been made to ensure that these data are accurate and reliable within
the limits of the current state of the art, neither JHU nor any other
party involved in creating, producing or delivering the website shall
be liable for any damages arising out of users' access to, or use
of, the website or web services. Users use the website and web services
at their own risk. JHU does not warrant that the functional aspects
of the website will be uninterrupted or error free, and may make
changes to the site without notice.