Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Coenen, Joachim
kww
Commits
72594afc
Commit
72594afc
authored
Mar 28, 2019
by
Wuttke, Joachim
Browse files
add dll im/ex port
parent
8fd6eae3
Changes
4
Hide whitespace changes
Inline
Side-by-side
demo/kww_countterms.c
View file @
72594afc
/* kww_counterms.c
*
*
* Copyright (C) 2009 Joachim Wuttke
*
*
* Licence: GNU General Public License, version 3 or later
*
* Author:
...
...
@@ -17,7 +17,7 @@
#include
<math.h>
#include
"kww.h"
extern
int
kww_num_of_terms
;
KWW_IMPORT
extern
int
kww_num_of_terms
;
double
kwwc_lim_low
(
const
double
beta
);
double
kwwc_lim_hig
(
const
double
beta
);
...
...
demo/runkww.c
View file @
72594afc
/* runkww.c
*
*
* Copyright (C) 2009 Joachim Wuttke
*
*
* Licence: GNU General Public License, version 3 or later
*
* Author:
...
...
@@ -16,7 +16,9 @@
#include
<stdlib.h>
#include
"kww.h"
extern
int
kww_algorithm
,
kww_num_of_terms
,
kww_debug
;
KWW_IMPORT
extern
int
kww_algorithm
;
KWW_IMPORT
extern
int
kww_num_of_terms
;
KWW_IMPORT
extern
int
kww_debug
;
int
main
(
int
argc
,
char
**
argv
)
{
...
...
lib/kww.c
View file @
72594afc
...
...
@@ -43,7 +43,10 @@
#define PI_2 1.57079632679489661923L
/* pi/2 */
#define SQR(x) ((x)*(x))
int
kww_algorithm
,
kww_num_of_terms
,
kww_debug
=
0
;
// for external analysis
// for external analysis:
KWW_EXPORT
int
kww_algorithm
;
KWW_EXPORT
int
kww_num_of_terms
;
KWW_EXPORT
int
kww_debug
=
0
;
/*****************************************************************************/
/* Numeric precision and maximum number of terms */
...
...
lib/kww.h
View file @
72594afc
...
...
@@ -2,17 +2,17 @@
* Calculation of the Kohlrausch-Williams-Watts spectrum, i.e.
* Laplace-Fourier transform of the stretched exponential function exp(-t^b).
* Frequently used to describe relaxation in disordered systems.
*
*
* Copyright:
* (C) 2009, 2012 Joachim Wuttke
*
*
* Licence:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version. Alternative licenses can be
* obtained through written agreement from the author.
*
*
* This program is distributed in the hope that it will be useful,
* but without any warranty; without even the implied warranty of
* merchantability or fitness for a particular purpose.
...
...
@@ -46,6 +46,14 @@
#endif
__BEGIN_DECLS
#if _WIN32
#define KWW_EXPORT __declspec(dllexport)
#define KWW_IMPORT __declspec(dllimport)
#else
#define KWW_EXPORT
#define KWW_IMPORT
#endif
/*****************************************************************************/
/* High-level calls */
/*****************************************************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment