CPU backend for smooth Heaviside mapping operations.
|
| subroutine, public | heaviside_mapping_apply_cpu (beta, eta, x_out, x_in, n) |
| | Apply smooth Heaviside mapping on CPU.
|
| |
| subroutine, public | heaviside_mapping_apply_backward_cpu (beta, eta, sens_out, sens_in, x_in, n) |
| | Apply smooth Heaviside mapping chain rule on CPU.
|
| |
◆ heaviside_mapping_apply_backward_cpu()
| subroutine, public heaviside_mapping_cpu::heaviside_mapping_apply_backward_cpu |
( |
real(kind=rp), intent(in) |
beta, |
|
|
real(kind=rp), intent(in) |
eta, |
|
|
real(kind=rp), dimension(n), intent(out) |
sens_out, |
|
|
real(kind=rp), dimension(n), intent(in) |
sens_in, |
|
|
real(kind=rp), dimension(n), intent(in) |
x_in, |
|
|
integer, intent(in) |
n |
|
) |
| |
- Parameters
-
| [in] | beta | Projection sharpness parameter. |
| [in] | eta | Projection threshold parameter. |
| [out] | sens_out | Sensitivity with respect to unprojected field. |
| [in] | sens_in | Sensitivity with respect to projected field. |
| [in] | X_in | Unprojected field values. |
| [in] | n | Number of degrees of freedom. |
Definition at line 73 of file heaviside_mapping_cpu.f90.
◆ heaviside_mapping_apply_cpu()
| subroutine, public heaviside_mapping_cpu::heaviside_mapping_apply_cpu |
( |
real(kind=rp), intent(in) |
beta, |
|
|
real(kind=rp), intent(in) |
eta, |
|
|
real(kind=rp), dimension(n), intent(out) |
x_out, |
|
|
real(kind=rp), dimension(n), intent(in) |
x_in, |
|
|
integer, intent(in) |
n |
|
) |
| |
- Parameters
-
| [in] | beta | Projection sharpness parameter. |
| [in] | eta | Projection threshold parameter. |
| [out] | X_out | Mapped field values. |
| [in] | X_in | Unmapped field values. |
| [in] | n | Number of degrees of freedom. |
Definition at line 52 of file heaviside_mapping_cpu.f90.