| lib.rs (ce18bed930e8f3bfebcf709a18844aba97fe4630) | lib.rs (edb2538e3dd6743c029967fc4e89c6fcafedb8c2) |
|---|---|
| 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8use libceed::{prelude::*, Ceed}; --- 71 unchanged lines hidden (view full) --- 80 global_nodes_stride *= num_d[d]; 81 r_nodes /= p; 82 } 83 elem_nodes[loc_offset + loc_nodes] = global_nodes as i32; 84 } 85 } 86 87 // Mesh/solution data restriction | 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8use libceed::{prelude::*, Ceed}; --- 71 unchanged lines hidden (view full) --- 80 global_nodes_stride *= num_d[d]; 81 r_nodes /= p; 82 } 83 elem_nodes[loc_offset + loc_nodes] = global_nodes as i32; 84 } 85 } 86 87 // Mesh/solution data restriction |
| 88 let restr = ceed.elem_restriction( | 88 let rstr = ceed.elem_restriction( |
| 89 num_elem, 90 num_nodes, 91 num_comp, 92 scalar_size, 93 num_comp * scalar_size, 94 MemType::Host, 95 &elem_nodes, 96 )?; 97 98 // Quadratue data restriction | 89 num_elem, 90 num_nodes, 91 num_comp, 92 scalar_size, 93 num_comp * scalar_size, 94 MemType::Host, 95 &elem_nodes, 96 )?; 97 98 // Quadratue data restriction |
| 99 let restr_qdata = ceed.strided_elem_restriction( | 99 let rstr_qdata = ceed.strided_elem_restriction( |
| 100 num_elem, 101 elem_qpts, 102 num_comp, 103 num_comp * elem_qpts * num_elem, 104 CEED_STRIDES_BACKEND, 105 )?; | 100 num_elem, 101 elem_qpts, 102 num_comp, 103 num_comp * elem_qpts * num_elem, 104 CEED_STRIDES_BACKEND, 105 )?; |
| 106 Ok((restr, restr_qdata)) | 106 Ok((rstr, rstr_qdata)) |
| 107} 108 109// ---------------------------------------------------------------------------- 110// Set mesh coordinates 111// ---------------------------------------------------------------------------- 112pub fn cartesian_mesh_coords( 113 ceed: &Ceed, 114 dim: usize, --- 44 unchanged lines hidden --- | 107} 108 109// ---------------------------------------------------------------------------- 110// Set mesh coordinates 111// ---------------------------------------------------------------------------- 112pub fn cartesian_mesh_coords( 113 ceed: &Ceed, 114 dim: usize, --- 44 unchanged lines hidden --- |