| 255 | } |
| 256 | |
| 257 | boundary_region pml(double thickness, direction d, boundary_side side, double Rasymptotic, |
| 258 | double mean_stretch) { |
| 259 | return boundary_region(boundary_region::PML, thickness, Rasymptotic, mean_stretch, |
| 260 | pml_quadratic_profile, NULL, 1. / 3., 1. / 4., d, side, NULL); |
| 261 | } |
| 262 | boundary_region pml(double thickness, direction d, double Rasymptotic, double mean_stretch) { |
| 263 | return (pml(thickness, d, Low, Rasymptotic, mean_stretch) + |
| 264 | pml(thickness, d, High, Rasymptotic, mean_stretch)); |