File: map_af.C

package info (click to toggle)
lorene 0.0.0~cvs20161116%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,472 kB
  • sloc: cpp: 212,946; fortran: 21,645; makefile: 1,750; sh: 4
file content (680 lines) | stat: -rw-r--r-- 17,648 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
/*
 *  Methods of class Map_af
 *
 *   (see file map.h for documentation)
 *
 */

/*
 *   Copyright (c) 1999-2003 Eric Gourgoulhon
 *   Copyright (c) 1999-2001 Philippe Grandclement
 *
 *   This file is part of LORENE.
 *
 *   LORENE 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 2 of the License, or
 *   (at your option) any later version.
 *
 *   LORENE 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.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with LORENE; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */


char map_af_C[] = "$Header: /cvsroot/Lorene/C++/Source/Map/map_af.C,v 1.19 2014/10/13 08:53:02 j_novak Exp $" ;

/*
 * $Id: map_af.C,v 1.19 2014/10/13 08:53:02 j_novak Exp $
 * $Log: map_af.C,v $
 * Revision 1.19  2014/10/13 08:53:02  j_novak
 * Lorene classes and functions now belong to the namespace Lorene.
 *
 * Revision 1.18  2014/10/06 15:13:11  j_novak
 * Modified #include directives to use c++ syntax.
 *
 * Revision 1.17  2013/06/05 15:10:42  j_novak
 * Suppression of FINJAC sampling in r. This Jacobi(0,2) base is now
 * available by setting colloc_r to BASE_JAC02 in the Mg3d constructor.
 *
 * Revision 1.16  2012/01/17 15:34:35  j_penner
 * *** empty log message ***
 *
 * Revision 1.15  2012/01/17 10:31:32  j_penner
 * added access to computational coordinate xi
 *
 * Revision 1.14  2008/09/29 13:23:51  j_novak
 * Implementation of the angular mapping associated with an affine
 * mapping. Things must be improved to take into account the domain index.
 *
 * Revision 1.13  2008/08/19 06:42:00  j_novak
 * Minor modifications to avoid warnings with gcc 4.3. Most of them concern
 * cast-type operations, and constant strings that must be defined as const char*
 *
 * Revision 1.12  2007/12/21 11:05:33  j_novak
 * Put back the constructor from a Mg3d and a Tbl (it had disappeared?).
 *
 * Revision 1.11  2007/12/20 09:11:04  jl_cornou
 * Correction of an error in op_sxpun about Jacobi(0,2) polynomials
 *
 * Revision 1.10  2007/12/11 15:28:14  jl_cornou
 * Jacobi(0,2) polynomials partially implemented
 *
 * Revision 1.9  2006/04/25 07:21:59  p_grandclement
 * Various changes for the NS_BH project
 *
 * Revision 1.8  2005/08/29 15:10:18  p_grandclement
 * Addition of things needed :
 *   1) For BBH with different masses
 *   2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT
 *   WORKING YET !!!
 *
 * Revision 1.7  2004/12/02 09:33:06  p_grandclement
 * *** empty log message ***
 *
 * Revision 1.6  2004/03/25 10:29:23  j_novak
 * All LORENE's units are now defined in the namespace Unites (in file unites.h).
 *
 * Revision 1.5  2004/01/29 08:50:03  p_grandclement
 * Modification of Map::operator==(const Map&) and addition of the surface
 * integrales using Scalar.
 *
 * Revision 1.4  2003/10/15 10:33:11  e_gourgoulhon
 * Added new Coord's : drdt, srdrdp.
 *
 * Revision 1.3  2002/10/16 14:36:41  j_novak
 * Reorganization of #include instructions of standard C++, in order to
 * use experimental version 3 of gcc.
 *
 * Revision 1.2  2001/12/04 21:27:53  e_gourgoulhon
 *
 * All writing/reading to a binary file are now performed according to
 * the big endian convention, whatever the system is big endian or
 * small endian, thanks to the functions fwrite_be and fread_be
 *
 * Revision 1.1.1.1  2001/11/20 15:19:27  e_gourgoulhon
 * LORENE
 *
 * Revision 2.23  2001/02/28  11:04:05  eric
 * 1ere version testee de resize.
 *
 * Revision 2.22  2001/02/26  17:29:22  eric
 * Ajout de la fonction resize.
 *
 * Revision 2.21  2001/01/10  11:03:13  phil
 * ajout de homothetie interne
 *
 * Revision 2.20  2000/01/24  17:09:13  eric
 * suppression de la fonction convert.
 * suppression du constructeur par convertion d'un Map_et.
 * ajout du constructeur par conversion d'un Map.
 *
 * Revision 2.19  2000/01/24  16:42:48  eric
 * Dans operator=(const Map_af& ), appel de set_rot_phi.
 * Ajout de la fonction convert(const Map& ).
 *
 * Revision 2.18  1999/12/21  16:27:26  eric
 * Ajout du constructeur par conversion Map_af::Map_af(const Map_et&).
 * Ajout des fonctions Map_af::set_alpha et Map_af::set_beta.
 *
 * Revision 2.17  1999/12/17  09:14:43  eric
 * Amelioration de l'affichage.
 *
 * Revision 2.16  1999/12/06  13:12:23  eric
 * Introduction de la fonction homothetie.
 *
 * Revision 2.15  1999/11/25  16:28:53  eric
 * Le calcul des derivees partielles est transfere dans le fichier
 *   map_af_deriv.C.
 *
 * Revision 2.14  1999/11/24  14:32:54  eric
 * Les prototypes des fonctions de constructions des coords sont desormais
 *   dans map.h.
 * Introduction des fonctions get_alpha() et get_beta().
 * /
 *
 * Revision 2.13  1999/11/22  10:36:14  eric
 * Introduction de la fonction set_coord().
 * Fonction del_coord() rebaptisee reset_coord().
 *
 * Revision 2.12  1999/10/27  08:46:29  eric
 * Introduction de Cmp::va a la place de *(Cmp::c).
 *
 * Revision 2.11  1999/10/15  09:23:10  eric
 * *** empty log message ***
 *
 * Revision 2.10  1999/10/15  09:16:23  eric
 * Changement prototypes: const.
 *
 * Revision 2.9  1999/10/14  14:27:05  eric
 * Depoussierage.
 *
 * Revision 2.8  1999/04/12  12:54:05  phil
 * *** empty log message ***
 *
 * Revision 2.7  1999/04/12  12:09:03  phil
 * Mise a jour des bases dans dsdr()
 *
 * Revision 2.6  1999/03/04  13:11:48  eric
 * Ajout des Coord representant les derivees du changement de variable.
 *
 * Revision 2.5  1999/03/03  11:19:08  hyc
 * *** empty log message ***
 *
 *
 * $Header: /cvsroot/Lorene/C++/Source/Map/map_af.C,v 1.19 2014/10/13 08:53:02 j_novak Exp $
 *
 */

// headers C
#include <cmath>

// headers Lorene
#include "cmp.h"
#include "utilitaires.h"
#include "proto.h"
#include "unites.h"

			//---------------//
			// Constructeurs //
			//---------------//

// Constructor from a grid
// -----------------------
namespace Lorene {
Map_af::Map_af(const Mg3d& mgrille, const double* bornes) : Map_radial(mgrille)
{
    // Les coordonnees et les derivees du changement de variable
    set_coord() ; 
    
    // Les bornes
    int nzone = mg->get_nzone() ;
    
    alpha = new double[nzone] ;
    beta = new double[nzone] ;

    for (int l=0 ; l<nzone ; l++) {
	switch (mg->get_type_r(l)) {
	    case RARE:	{
		alpha[l] = bornes[l+1] - bornes[l] ;
		beta[l] = bornes[l] ;
		break ; 
	    }
	    
	    case FIN:	{
		alpha[l] = (bornes[l+1] - bornes[l]) * .5 ;
		beta[l] = (bornes[l+1] + bornes[l]) * .5 ;
		break ;
	    }
	      
	    case UNSURR: {
		double umax = 1./bornes[l] ;
		double umin = 1./bornes[l+1] ;
		alpha[l] = (umin - umax) * .5 ;  // u est une fonction decroissante
		beta[l] = (umin + umax) * .5 ;   //  de l'indice i en r
		break ;
	    }
	    
	    default:	{
		cout << "Map_af::Map_af: unkown type_r ! " << endl ;
		abort () ;
		break ;
	    }
	    
	}
    }	    // Fin de la boucle sur zone
}

// Constructor from a grid
// -----------------------
Map_af::Map_af(const Mg3d& mgrille, const Tbl& bornes) : Map_radial(mgrille)
{
    // Les coordonnees et les derivees du changement de variable
    set_coord() ; 
    
    // Les bornes
    int nzone = mg->get_nzone() ;
    
    alpha = new double[nzone] ;
    beta = new double[nzone] ;

    for (int l=0 ; l<nzone ; l++) {
	switch (mg->get_type_r(l)) {
	    case RARE:	{
		alpha[l] = bornes(l+1) - bornes(l) ;
		beta[l] = bornes(l) ;
		break ; 
	    }
	    
	    case FIN:	{
		alpha[l] = (bornes(l+1) - bornes(l)) * .5 ;
		beta[l] = (bornes(l+1) + bornes(l)) * .5 ;
		break ;
	    }
	    
	    case UNSURR: {
	    	assert (l==nzone-1) ;
		double umax = 1./bornes(l) ;
		double umin = 0 ;
		alpha[l] = (umin - umax) * .5 ;  // u est une fonction decroissante
		beta[l] = (umin + umax) * .5 ;   //  de l'indice i en r
		break ;
	    }
	    
	    default:	{
		cout << "Map_af::Map_af: unkown type_r ! " << endl ;
		abort () ;
		break ;
	    }
	    
	}
    }	    // Fin de la boucle sur zone
}

// Copy constructor 
// ----------------
Map_af::Map_af(const Map_af& mp) : Map_radial(mp)
{
    // Les coordonnees et les derivees du changement de variable
    set_coord() ; 
        
    // Les bornes
    int nzone = mg->get_nzone() ;
    
    alpha = new double[nzone] ;
    beta = new double[nzone] ;

    for (int l=0; l<nzone; l++){
	alpha[l] = mp.alpha[l] ; 
	beta[l] = mp.beta[l] ; 
    }
}
	
// Constructor from file
// ---------------------
Map_af::Map_af(const Mg3d& mgi, FILE* fd) : Map_radial(mgi, fd)
{
    int nz = mg->get_nzone() ;
    alpha = new double[nz] ;
    beta = new double[nz] ;
    fread_be(alpha, sizeof(double), nz, fd) ;	
    fread_be(beta, sizeof(double), nz, fd) ;	

    // Les coordonnees et les derivees du changement de variable
    set_coord() ; 
}



// Constructor from a Map
// -----------------------
Map_af::Map_af(const Map& mpi) : Map_radial(*(mpi.get_mg()))
{
    // Les coordonnees et les derivees du changement de variable
    set_coord() ; 
        
    // Les bornes
    int nz = mg->get_nzone() ; 
    
    alpha = new double[nz] ;
    beta = new double[nz] ;

    const Map_af* mp0 = dynamic_cast<const Map_af*>(&mpi) ;
    const Map_et* mp1 = dynamic_cast<const Map_et*>(&mpi) ;
     
    if( (mp0 == 0x0) && (mp1 == 0x0) ) {
	cout << "Map_af::Map_af(const Map& ) : unkown mapping type !" 
	     << endl ; 
	abort() ; 
    }

    if (mp0 != 0x0) {
	assert( mp1 == 0x0 ) ; 
	for (int l=0; l<nz; l++){
	    alpha[l] = mp0->get_alpha()[l] ; 
	    beta[l] = mp0->get_beta()[l] ; 
	}
    }

	
    if (mp1 != 0x0) {
	assert( mp0 == 0x0 ) ; 
	for (int l=0; l<nz; l++){
	    alpha[l] = mp1->get_alpha()[l] ; 
	    beta[l] = mp1->get_beta()[l] ; 
	}
    }

    
    set_ori( mpi.get_ori_x(), mpi.get_ori_y(), mpi.get_ori_z() ) ; 
    
    set_rot_phi( mpi.get_rot_phi() ) ; 
    
}




			//--------------//
			// Destructeurs //
			//--------------//

Map_af::~Map_af() {
    delete [] alpha ;
    delete [] beta ;
}

			//-------------//
			// Assignement //
			//-------------//
			
// From another Map_af
// -------------------

void Map_af::operator=(const Map_af & mpi) {
    
    assert(mpi.mg == mg) ;
    
    set_ori( mpi.ori_x, mpi.ori_y, mpi.ori_z ) ; 
    
    set_rot_phi( mpi.rot_phi ) ; 

    for (int l = 0; l<mg->get_nzone(); l++) {
	alpha[l] = mpi.alpha[l] ; 
	beta[l] = mpi.beta[l] ; 
    }

    reset_coord() ;      
}
    



	    //-------------------------------------------------//
	    //  Assignement of the Coord building functions    //
	    //-------------------------------------------------//
	    
void Map_af::set_coord(){

    // ... Coord's introduced by the base class Map : 
    r.set(this, map_af_fait_r) ;
    tet.set(this, map_af_fait_tet) ;
    phi.set(this, map_af_fait_phi) ;
    sint.set(this, map_af_fait_sint) ;
    cost.set(this, map_af_fait_cost) ;
    sinp.set(this, map_af_fait_sinp) ;
    cosp.set(this, map_af_fait_cosp) ;

    x.set(this, map_af_fait_x) ;
    y.set(this, map_af_fait_y) ;
    z.set(this, map_af_fait_z) ;

    xa.set(this, map_af_fait_xa) ;
    ya.set(this, map_af_fait_ya) ;
    za.set(this, map_af_fait_za) ;
    
    // ... Coord's introduced by the base class Map_radial : 
    xsr.set(this, map_af_fait_xsr) ;
    dxdr.set(this, map_af_fait_dxdr) ;
    drdt.set(this, map_af_fait_drdt) ;
    stdrdp.set(this, map_af_fait_stdrdp) ;
    srdrdt.set(this, map_af_fait_srdrdt) ;
    srstdrdp.set(this, map_af_fait_srstdrdp) ;
    sr2drdt.set(this, map_af_fait_sr2drdt) ;
    sr2stdrdp.set(this, map_af_fait_sr2stdrdp) ;
    d2rdx2.set(this, map_af_fait_d2rdx2) ;
    lapr_tp.set(this, map_af_fait_lapr_tp) ;
    d2rdtdx.set(this, map_af_fait_d2rdtdx) ;
    sstd2rdpdx.set(this, map_af_fait_sstd2rdpdx) ;
    sr2d2rdt2.set(this, map_af_fait_sr2d2rdt2) ;
    
}
// Comparison operator :
bool Map_af::operator==(const Map& mpi) const {
  
  // Precision of the comparison
  double precis = 1e-10 ;
  bool resu = true ;

  // Dynamic cast pour etre sur meme Map...
  const Map_af* mp0 = dynamic_cast<const Map_af*>(&mpi) ;
  if (mp0 == 0x0)
    resu = false ;
  else {
    if (*mg != *(mpi.get_mg()))
      resu = false ;
    
    if (fabs(ori_x-mpi.get_ori_x()) > precis) resu = false ;
    if (fabs(ori_y-mpi.get_ori_y()) > precis) resu = false ;
    if (fabs(ori_z-mpi.get_ori_z()) > precis)  resu = false ;

    if (bvect_spher != mpi.get_bvect_spher()) resu = false ;
    if (bvect_cart != mpi.get_bvect_cart()) resu = false ;

    int nz = mg->get_nzone() ;
    for (int i=0 ; i<nz ; i++) {
      if (fabs(alpha[i]-mp0->alpha[i])/fabs(alpha[i]) > precis) 
	resu = false ;
      if ((i!=0) && (i!=nz-1))
	if (fabs(beta[i]-mp0->beta[i])/fabs(beta[i]) > precis) 
	resu = false ;
    }
  }

  return resu ;
}

		//--------------------------------------//
		// Extraction of the mapping parameters //
		//--------------------------------------//

const double* Map_af::get_alpha() const {
    return alpha ; 
}

const double* Map_af::get_beta() const {
    return beta ; 
}

			//------------//
			// Sauvegarde //
			//------------//

void Map_af::sauve(FILE* fd) const {

    Map_radial::sauve(fd) ; 

    int nz = mg->get_nzone() ;
    fwrite_be(alpha, sizeof(double), nz, fd) ;	
    fwrite_be(beta, sizeof(double), nz, fd) ;	
    
}
    
			//------------//
			// Impression //
			//------------//

ostream & Map_af::operator>>(ostream & ost) const {

  using namespace Unites ;

    ost << "Affine mapping (class Map_af)" << endl ; 
    int nz = mg->get_nzone() ;
    for (int l=0; l<nz; l++) {
	ost << "     Domain #" << l << " : alpha_l = " << alpha[l] 
	  << " ,  beta_l = " << beta[l] << endl ;  
    }

    ost << endl << "     Values of r at the outer boundary of each domain [km] :" 
	<< endl ; 
    ost << "            val_r :   " ;
    for (int l=0; l<nz; l++) {
	ost << " " << val_r(l, 1., 0., 0.) / km ; 
    }
    ost << endl ; 

    ost << "            Coord r : " ; 
    for (int l=0; l<nz; l++) {
	int nrm1 = mg->get_nr(l) - 1 ; 
	ost << " " << (+r)(l, 0, 0, nrm1) / km ; 
    }
    ost << endl ; 

    return ost ;
}    

			//------------------//
			//  Homothetie	    //
			//------------------//


void Map_af::homothetie(double fact) {

    int nz = mg->get_nzone() ; 
    
    for (int l=0; l<nz; l++) {
	if (mg->get_type_r(l) == UNSURR) {
	    alpha[l] /= fact ;
	    beta[l] /= fact ;
	}
	else {
	    alpha[l] *= fact ;
	    beta[l] *= fact ;
	}
    }
    
    reset_coord() ; 
    
}

		    //----------------------------//
		    //	Rescaling of one domain	  //
		    //----------------------------//

void Map_af::resize(int l, double lambda) {

    // Protections
    // -----------
    if (mg->get_type_r(l) != FIN) {
	cout << "Map_af::resize can be applied only to a shell !" << endl ; 
	abort() ;
    }

    // New values of alpha and beta in domain l :
    // ----------------------------------------
    double n_alpha = 0.5 * ( (lambda + 1.) * alpha[l] +  
			     (lambda - 1.) * beta[l] ) ; 

    double n_beta = 0.5 * ( (lambda - 1.) * alpha[l] +  
			    (lambda + 1.) * beta[l] ) ; 
			    
    alpha[l] = n_alpha ; 
    beta[l] = n_beta ; 
    
    // New values of alpha and beta in domain l+1 :
    // ------------------------------------------
    assert(l<mg->get_nzone()-1) ; 
    int lp1 = l + 1 ; 
    
    if (mg->get_type_r(lp1) == UNSURR) {	    // compactified case
	
	alpha[lp1] = - 0.5 / ( alpha[l] + beta[l] ) ; 
	beta[lp1] = - alpha[lp1] ; 
	
    }
    else{	// non-compactified case
	
	assert( mg->get_type_r(lp1) == FIN ) ;
	n_alpha = 0.5 * ( alpha[lp1] - alpha[l] + beta[lp1] - beta[l] ) ; 
	n_beta =  0.5 * ( alpha[lp1] + alpha[l] + beta[lp1] + beta[l] ) ; 
	alpha[lp1] = n_alpha ; 
	beta[lp1] = n_beta ; 
    }
    
    // The coords are no longer up to date :
    reset_coord() ; 
    
} 

		    



			//---------------------------//
			//  Homothetie	partielle   //
			//-------------------------//


void Map_af::homothetie_interne(double fact) {
    
    // Dans le noyau
    alpha[0] *= fact ;

    // Dans la premiere coquille :
    double asauve  = alpha[1] ;
    alpha[1] = (1-fact)/2.*beta[1] + (1+fact)/2. * alpha[1] ;
    beta[1] = (1+fact)/2.*beta[1]+ (1-fact)/2. * asauve ;
    
    reset_coord() ; 
}
			//------------------------------------------//
			//  Modification of the mapping parameters  //
			//------------------------------------------//

void Map_af::set_alpha(double alpha0, int l) {
    
    assert(l>=0) ; 
    assert(l<mg->get_nzone()) ; 
    
    alpha[l] = alpha0 ; 
    
    reset_coord() ; 
    
}

void Map_af::set_beta(double beta0, int l) {
    
    assert(l>=0) ; 
    assert(l<mg->get_nzone()) ; 
    
    beta[l] = beta0 ; 
    
    reset_coord() ; 
    
}

                            //------------------------------------//
                            //    Angular part of the mapping     //
                            //------------------------------------//

const Map_af& Map_af::mp_angu(int l_zone) const {
//## the handling of l_zone must be improved 
    if (p_mp_angu == 0x0) {
	const Mg3d& g_angu = (*get_mg()->get_angu_1dom()) ;
	double Rb = val_r_jk(l_zone, 1., 0, 0) ;
	Tbl rlim(2) ;
	rlim.set_etat_qcq() ;
	rlim.set(0) = Rb ;
	rlim.set(1) = Rb ;
	p_mp_angu = new Map_af(g_angu, rlim) ;
    }
    return *p_mp_angu ;
}

// To be done
//-----------

void Map_af::adapt(const Cmp&, const Param&, int) {
    const char* f = __FILE__ ;
    c_est_pas_fait(f) ;
}



}