cadiinter.cpp

Go to the documentation of this file.
00001 #include "cadianiso.h"
00002 extern "C" void initialize_(char* path, int* pathlenptr, int junk)
00003 {
00004 /* Do nothing */
00005 }
00006 
00007 /* Set up the bounds of the parameter space
00008 * After being called, this function must have
00009 * a) set nd to be equal to the dimension of the
00010 * parameter space being searched
00011 * b) set ranges[i][0] to be the lower bound on parameter i
00012 * c) set ranges[i][1] must hold the upper bound on parameter i
00013 *
00014 * Currently, the scales argument is ignored. You neednt do
00015 * anything to it.
00016 */
00017 extern "C"  void user_init_(int* nd, float* ranges, float* scales) {
00018 init(nd,ranges);
00019 }
00020 
00021 
00022 /* nd (in) is the number of dimensions of the parameter space
00023 * model (in) is a point in that parameter space
00024 * mfitval (out) is the misfit that is assigned to 'model'
00025 *
00026 * In this simple example, we define our misfit to be a simple
00027 * polynomial. In real examples, you need to put your own code in
00028 * here.
00029 *
00030 * calculate misfit = x^3 + y^2 + 10z
00031 */
00032 extern "C"  void forward_(int* nd, float* model, float* mfitval) {
00033 misfit(model,mfitval,nd);
00034 }

Generated on Tue May 4 16:52:14 2010 for GPLIB++ by  doxygen 1.5.8