Home
last modified time | relevance | path

Searched refs:mesh_coords (Results 1 – 25 of 28) sorted by relevance

12

/libCEED/examples/ceed/
H A Dex2-surface.c51 …tCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[3], CeedInt mesh_degree, CeedVector mesh_coords);
52 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
162 CeedVector mesh_coords; in main() local
164 CeedVectorCreate(ceed, mesh_size, &mesh_coords); in main()
165 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
168 CeedScalar exact_surface_area = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
210 CeedOperatorApply(op_build, mesh_coords, q_data, CEED_REQUEST_IMMEDIATE); in main()
249 CeedVectorGetArrayRead(mesh_coords, CEED_MEM_HOST, &x_array); in main()
255 CeedVectorRestoreArrayRead(mesh_coords, &x_array); in main()
299 CeedVectorDestroy(&mesh_coords); in main()
[all …]
H A Dex3-volume.c50 …artesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords);
51 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
154 CeedVector mesh_coords; in main() local
156 CeedVectorCreate(ceed, mesh_size, &mesh_coords); in main()
157 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
160 CeedScalar exact_volume = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
194 CeedOperatorApply(op_build, mesh_coords, q_data, CEED_REQUEST_IMMEDIATE); in main()
268 CeedVectorDestroy(&mesh_coords); in main()
356 …rtesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords) { in SetCartesianMeshCoords() argument
366 CeedVectorGetArrayWrite(mesh_coords, CEED_MEM_HOST, &coords); in SetCartesianMeshCoords()
[all …]
H A Dex1-volume.c51 …artesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords);
52 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
156 CeedVector mesh_coords; in main() local
158 CeedVectorCreate(ceed, mesh_size, &mesh_coords); in main()
159 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
162 CeedScalar exact_volume = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
204 CeedOperatorApply(op_build, mesh_coords, q_data, CEED_REQUEST_IMMEDIATE); in main()
279 CeedVectorDestroy(&mesh_coords); in main()
365 …rtesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords) { in SetCartesianMeshCoords() argument
375 CeedVectorGetArrayWrite(mesh_coords, CEED_MEM_HOST, &coords); in SetCartesianMeshCoords()
[all …]
H A Dex1-volume-f.f90200 integer mesh_coords local
248 call ceedvectorsetarray(mesh_coords, ceed_mem_host, ceed_copy_values, coords, offset, err)
268 integer mesh_coords, q_data, u, v variable
413 call ceedvectorcreate(ceed, mesh_size, mesh_coords, err)
414 call setcartesianmeshcoords(fe_dim, num_xyz, mesh_degree, mesh_coords, exact_volume, err)
460 call ceedoperatorapply(op_build, mesh_coords, q_data, ceed_request_immediate, err)
542 call ceedvectordestroy(mesh_coords, err)
/libCEED/examples/rust-qfunctions/
H A Dex1-volume.c52 …artesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords);
53 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
166 CeedVector mesh_coords; in main() local
168 CeedVectorCreate(ceed, mesh_size, &mesh_coords); in main()
169 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
172 CeedScalar exact_volume = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
214 CeedOperatorApply(op_build, mesh_coords, q_data, CEED_REQUEST_IMMEDIATE); in main()
289 CeedVectorDestroy(&mesh_coords); in main()
375 …rtesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_coords) { in SetCartesianMeshCoords() argument
385 CeedVectorGetArrayWrite(mesh_coords, CEED_MEM_HOST, &coords); in SetCartesianMeshCoords()
[all …]
/libCEED/examples/rust/ex3-volume/src/
H A Dtransform.rs14 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
19 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
29 let mut coords = mesh_coords.view_mut()?; in transform_mesh_coordinates()
/libCEED/examples/rust/ex3-volume-vector/src/
H A Dtransform.rs14 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
19 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
29 let mut coords = mesh_coords.view_mut()?; in transform_mesh_coordinates()
/libCEED/examples/rust/ex1-volume/src/
H A Dtransform.rs14 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
18 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
25 let mut coords = mesh_coords.view_mut()?; in transform_mesh_coordinates()
H A Dmain.rs127 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_1() localVariable
130 let exact_volume = transform::transform_mesh_coordinates(dim, mesh_size, &mut mesh_coords)?; in example_1()
210 op_build.apply(&mesh_coords, &mut qdata)?; in example_1()
/libCEED/examples/rust/ex1-volume-vector/src/
H A Dtransform.rs14 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
18 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
25 let mut coords = mesh_coords.view_mut()?; in transform_mesh_coordinates()
H A Dmain.rs131 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_1_vector() localVariable
134 let exact_volume = transform::transform_mesh_coordinates(dim, mesh_size, &mut mesh_coords)?; in example_1_vector()
214 op_build.apply(&mesh_coords, &mut qdata)?; in example_1_vector()
/libCEED/julia/LibCEED.jl/examples/
H A Dex2-surface.jl5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) argument
6 @witharray coords = mesh_coords begin
64 mesh_coords = CeedVector(ceed, mesh_size)
65 set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords)
68 exact_sa = transform_mesh_coords!(dim, mesh_size, mesh_coords)
106 apply!(build_oper, mesh_coords, qdata)
148 x_host = mesh_coords,
H A Dex1-volume.jl5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) argument
6 @witharray coords = mesh_coords begin
62 mesh_coords = CeedVector(ceed, mesh_size)
63 set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords)
65 exact_vol = transform_mesh_coords!(dim, mesh_size, mesh_coords)
102 apply!(build_oper, mesh_coords, qdata)
H A Dex1-volume-c.jl160 function set_cartesian_mesh_coords_c(dim, nxyz, mesh_order, mesh_coords) argument
167 C.CeedVectorGetArray(mesh_coords[], C.CEED_MEM_HOST, coords_ref)
182 C.CeedVectorRestoreArray(mesh_coords[], coords_ref)
185 function transform_mesh_coords_c(dim, mesh_size, mesh_coords) argument
187 C.CeedVectorGetArray(mesh_coords[], C.CEED_MEM_HOST, coords_ref)
211 C.CeedVectorRestoreArray(mesh_coords[], coords_ref)
266 mesh_coords = Ref{C.CeedVector}()
267 C.CeedVectorCreate(ceed[], mesh_size, mesh_coords)
268 set_cartesian_mesh_coords_c(dim, nxyz, mesh_order, mesh_coords)
270 exact_vol = transform_mesh_coords_c(dim, mesh_size, mesh_coords)
[all …]
H A Dex3-volume.jl5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) argument
6 @witharray coords = mesh_coords begin
72 mesh_coords = CeedVector(ceed, mesh_size)
73 set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords)
75 exact_vol = transform_mesh_coords!(dim, mesh_size, mesh_coords)
119 apply!(build_oper, mesh_coords, qdata)
H A Dcommon.jl104 function set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords) argument
114 @witharray coords = mesh_coords begin
/libCEED/examples/rust/ex2-surface/src/
H A Dtransform.rs13 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
16 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
H A Dmain.rs136 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_2() localVariable
139 let exact_area = transform::transform_mesh_coordinates(dim, &mut mesh_coords)?; in example_2()
247 op_build.apply(&mesh_coords, &mut qdata)?; in example_2()
324 let coords = mesh_coords.view()?; in example_2()
/libCEED/examples/rust/ex2-surface-vector/src/
H A Dtransform.rs13 mesh_coords: &mut libceed::Vector, in transform_mesh_coordinates()
16 for coord in mesh_coords.view_mut()?.iter_mut() { in transform_mesh_coordinates()
H A Dmain.rs139 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_2_vector() localVariable
142 let exact_area = transform::transform_mesh_coordinates(dim, &mut mesh_coords)?; in example_2_vector()
250 op_build.apply(&mesh_coords, &mut qdata)?; in example_2_vector()
341 let coords = mesh_coords.view()?; in example_2_vector()
/libCEED/examples/rust/mesh/src/
H A Dlib.rs145 let mut mesh_coords = ceed.vector(mesh_size)?; localVariable
146 mesh_coords.set_value(0.0)?;
148 let mut coords = mesh_coords.view_mut()?;
161 Ok(mesh_coords)
/libCEED/examples/python/
H A Dex2_surface.py94 mesh_coords = ceed.Vector(mesh_size)
95 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
96 _, exact_surface_area = common.transform_mesh_coords(dim, mesh_size, mesh_coords, use_sin=False)
126 op_build.apply(mesh_coords, q_data)
158 with mesh_coords.array_read() as x_array, u.array_write() as u_array:
H A Dex_common.py156 def set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords): argument
191 mesh_coords.set_array(coords, cmode=libceed.COPY_VALUES)
192 return mesh_coords
195 def transform_mesh_coords(dim, mesh_size, mesh_coords, use_sin=True): argument
212 with mesh_coords.array_write() as coords:
H A Dex3_volume.py98 mesh_coords = ceed.Vector(mesh_size)
99 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
100 exact_volume, _ = common.transform_mesh_coords(dim, mesh_size, mesh_coords)
128 op_build.apply(mesh_coords, q_data)
H A Dex1_volume.py93 mesh_coords = ceed.Vector(mesh_size)
94 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
95 exact_volume, _ = common.transform_mesh_coords(dim, mesh_size, mesh_coords)
124 op_build.apply(mesh_coords, q_data)

12