aboutsummaryrefslogtreecommitdiffstats
path: root/interface/opt.h
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2008-12-15 07:26:12 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2008-12-15 07:26:12 +0000
commit1f4a944064bc42284c33e6b755353d191cf288e8 (patch)
treec8cb2253dea5f395e0f867aa6976433bd3eb00de /interface/opt.h
downloadopt-utilities-1f4a944064bc42284c33e6b755353d191cf288e8.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@1 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'interface/opt.h')
-rw-r--r--interface/opt.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/interface/opt.h b/interface/opt.h
new file mode 100644
index 0000000..e9c3221
--- /dev/null
+++ b/interface/opt.h
@@ -0,0 +1,29 @@
+#ifndef OPT_H
+#define OPT_H
+#define F77
+#ifdef F77
+#define alloc_fit_ alloc_fit__
+#define free_fit_ free_fit__
+#define load_data_ load_data__
+#define set_model_ set_model__
+#define set_param_ set_param__
+#define freeze_param_ freeze_param__
+#define thaw_param_ thaw_param__
+#define perform_fit_ perform_fit__
+#define get_param_ get_param__
+#endif
+
+extern "C"
+{
+ void alloc_fit_(int&);
+ void free_fit_(const int& nxc);
+ void load_data_(const int& nfit,const int& ndatas,double* x,double* y,double* yl,double* yu=0,double* xl=0,double* xu=0);
+ void set_model_(const int& nfit,const char* model_name);
+ void set_param_(const int& nfit,const char* param_name,const double& value);
+ void freeze_param_(const int& nfit,const char* param_name);
+ void thraw_param_(const int& nfit,const char* param_name);
+ void perform_fit_(const int& nfit);
+ void get_param_(const int& nfit,double& r,const char* param_name);
+}
+
+#endif