source: CIVL/examples/omp/shtns/sht_mic.c

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[2131108]1/*
2 * Copyright (c) 2010-2015 Centre National de la Recherche Scientifique.
3 * written by Nathanael Schaeffer (CNRS, ISTerre, Grenoble, France).
4 *
5 * nathanael.schaeffer@ujf-grenoble.fr
6 *
7 * This software is governed by the CeCILL license under French law and
8 * abiding by the rules of distribution of free software. You can use,
9 * modify and/or redistribute the software under the terms of the CeCILL
10 * license as circulated by CEA, CNRS and INRIA at the following URL
11 * "http://www.cecill.info".
12 *
13 * The fact that you are presently reading this means that you have had
14 * knowledge of the CeCILL license and that you accept its terms.
15 *
16 */
17
18#include "sht_private.h"
19
20#define MTR MMAX
21#define SHT_VAR_LTR
22
23#define GEN(name,sfx) GLUE2(name,sfx)
24#define GEN3(name,nw,sfx) GLUE3(name,nw,sfx)
25
26// genaral case
27#undef SUFFIX
28#define SUFFIX _l
29
30 #define NWAY 1
31 #include "SHT/spat_to_SHst_mic.c"
32 #include "SHT/SHst_to_spat_mic.c"
33 #undef NWAY
34 #define NWAY 2
35 #include "SHT/spat_to_SH_mic.c"
36 #include "SHT/SH_to_spat_mic.c"
37 #include "SHT/spat_to_SHst_mic.c"
38 #include "SHT/SHst_to_spat_mic.c"
39 #undef NWAY
40 #define NWAY 3
41 #include "SHT/spat_to_SH_mic.c"
42 #include "SHT/SH_to_spat_mic.c"
43 #include "SHT/spat_to_SHst_mic.c"
44 #include "SHT/SHst_to_spat_mic.c"
45 #undef NWAY
46 #define NWAY 4
47 #include "SHT/spat_to_SH_mic.c"
48 #include "SHT/SH_to_spat_mic.c"
49 #undef NWAY
50 #define NWAY 6
51 #include "SHT/spat_to_SH_mic.c"
52 #include "SHT/SH_to_spat_mic.c"
53 #undef NWAY
54 #define NWAY 8
55 #include "SHT/spat_to_SH_mic.c"
56 #include "SHT/SH_to_spat_mic.c"
57 #undef NWAY
58
59#define SHT_GRAD
60 #define NWAY 1
61 #include "SHT/SHs_to_spat_mic.c"
62 #include "SHT/SHt_to_spat_mic.c"
63 #undef NWAY
64 #define NWAY 2
65 #include "SHT/SHs_to_spat_mic.c"
66 #include "SHT/SHt_to_spat_mic.c"
67 #undef NWAY
68 #define NWAY 3
69 #include "SHT/SHs_to_spat_mic.c"
70 #include "SHT/SHt_to_spat_mic.c"
71 #undef NWAY
72 #define NWAY 4
73 #include "SHT/SHs_to_spat_mic.c"
74 #include "SHT/SHt_to_spat_mic.c"
75 #undef NWAY
76#undef SHT_GRAD
77
78#define SHT_3COMP
79 #define NWAY 1
80 #include "SHT/spat_to_SHqst_mic.c"
81 #include "SHT/SHqst_to_spat_mic.c"
82 #undef NWAY
83 #define NWAY 2
84 #include "SHT/spat_to_SHqst_mic.c"
85 #include "SHT/SHqst_to_spat_mic.c"
86 #undef NWAY
87 #define NWAY 3
88 #include "SHT/spat_to_SHqst_mic.c"
89 #include "SHT/SHqst_to_spat_mic.c"
90 #undef NWAY
91#undef SHT_3COMP
92
93
94void* ffly[6][SHT_NTYP] = {
95 { NULL, NULL, SHsphtor_to_spat_mic1_l, spat_to_SHsphtor_mic1_l,
96 SHsph_to_spat_mic1_l, SHtor_to_spat_mic1_l, SHqst_to_spat_mic1_l, spat_to_SHqst_mic1_l },
97 { SH_to_spat_mic2_l, spat_to_SH_mic2_l, SHsphtor_to_spat_mic2_l, spat_to_SHsphtor_mic2_l,
98 SHsph_to_spat_mic2_l, SHtor_to_spat_mic2_l, SHqst_to_spat_mic2_l, spat_to_SHqst_mic2_l },
99 { SH_to_spat_mic3_l, spat_to_SH_mic3_l, SHsphtor_to_spat_mic3_l, spat_to_SHsphtor_mic3_l,
100 SHsph_to_spat_mic3_l, SHtor_to_spat_mic3_l, SHqst_to_spat_mic3_l, spat_to_SHqst_mic3_l },
101 { SH_to_spat_mic4_l, spat_to_SH_mic4_l, NULL, NULL,
102 SHsph_to_spat_mic4_l, SHtor_to_spat_mic4_l, NULL, NULL },
103 { SH_to_spat_mic6_l, spat_to_SH_mic6_l, NULL, NULL,
104 NULL, NULL, NULL, NULL },
105 { SH_to_spat_mic8_l, spat_to_SH_mic8_l, NULL, NULL,
106 NULL, NULL, NULL, NULL }
107};
108
109void* ffly_m0[6][SHT_NTYP] = {
110 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
111 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
112 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
113 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
114 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
115 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
116};
117
118void* fomp[6][SHT_NTYP] = {
119 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
120 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
121 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
122 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
123 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
124 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
125};
126
127void* ffly_m[6][SHT_NTYP] = {
128 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
129 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
130 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
131 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
132 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
133 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
134};
Note: See TracBrowser for help on using the repository browser.