1 | # Programmes exemple pour l'utilisation de Sophya
|
---|
2 |
|
---|
3 | On suppose que $DPCBASREP/`uname`-$SOPHYACXX/Exec est ds le path et
|
---|
4 | .:$DPCBASREP/`uname`-$SOPHYACXX/ShLibs ds LD_LIBRARY_PATH
|
---|
5 |
|
---|
6 | 1) ex1.cc
|
---|
7 | Un programme simple utilisant SOPHYA
|
---|
8 |
|
---|
9 |
|
---|
10 | 2) arr1.icc
|
---|
11 | Un bout de code C++ utilisant SOPHYA, pouvant etre execute
|
---|
12 | par runcxx :
|
---|
13 | csh> runcxx -f arr1.icc
|
---|
14 | OU
|
---|
15 | csh> runcxx -tmpdir /tmp arr1.icc
|
---|
16 |
|
---|
17 | 3) fft.icc et myf_fft.h
|
---|
18 | Exemple de code C++ utilisant les transforme de Fourier de SOPHYA,
|
---|
19 | pouvant etre execute ds spiapp.
|
---|
20 |
|
---|
21 | 4) sphylm.icc sphylm.h
|
---|
22 | Exemple d'utilisation des cartes 4Pi (SphericalMaps) et des
|
---|
23 | transforme en harmonique spherique pouvant etre execute ds spiapp.
|
---|
24 |
|
---|
25 |
|
---|
26 | 5) apc.icc apcxx.icc apcxx_cstyle.icc
|
---|
27 | Matrix and vector manipulation and Fourier filtering
|
---|
28 | apc.icc : written as a C program
|
---|
29 | apcxx.icc : C++ code with SOPHYA arrays
|
---|
30 | apcxx_cstyle.icc : similar to apcxx.icc but with
|
---|
31 | C_style programming (explicit loops)
|
---|
32 |
|
---|
33 | csh> spiapp
|
---|
34 | (on peut definir la variable d'environnement TMPDIR avant l'appel
|
---|
35 | a spiapp )
|
---|
36 |
|
---|
37 | Commandes a taper dans la fenetre de commande de (s)piapp :
|
---|
38 |
|
---|
39 | Cmd> delobjs *
|
---|
40 | Cmd> c++execfrf fft.icc myf_fft.h
|
---|
41 | Cmd> delobjs *
|
---|
42 | Cmd> c++execfrf sphylm.icc sphylm.h
|
---|
43 |
|
---|
44 | 6) arrwrt.icc , arrrd.icc
|
---|
45 | Creation/ecriture, lecture de tableaux ds fichiers PPF
|
---|
46 | # Pour ecrire le fichier arrt.ppf
|
---|
47 | csh> runcxx -f arrwrt.icc
|
---|
48 | # Lecture du fichier arrt.ppf
|
---|
49 | csh> runcxx -f arrrd.icc
|
---|