#include <iostream>
#include <iomanip>

#include "JAcoustics/JAcousticsSupportkit.hh"

#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"


/**
 * \file
 *
 * Auxiliary program to print attenuation length.
 * \author mdejong
 */
int main(int argc, char **argv)
{
  using namespace std;
  using namespace JPP;

  double      D_m;
  double      f_kHz;
  int         debug;

  try {

    JParser<> zap("Auxiliary program to print attenuation length.");

    zap['D'] = make_field(D_m,     "depth [m]");
    zap['f'] = make_field(f_kHz,   "frequency [kHz]");
    zap['d'] = make_field(debug)            = 1;

    zap(argc, argv);
  }
  catch(const exception &error) {
    FATAL(error.what() << endl);
  }

  cout << getAttenuationLength(D_m, f_kHz) << endl;
}