| /libCEED/examples/ceed/ |
| H A D | ex2-surface.c | 48 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[3]); 49 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[3], CeedInt degree, Ce… 51 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[3], CeedInt mesh_degree, CeedVector … 134 CeedInt num_xyz[3]; in main() local 136 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main() 140 printf("Mesh size: nx = %" CeedInt_FMT, num_xyz[0]); in main() 141 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main() 142 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main() 151 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main() 152 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, dim * (dim + 1) / 2, &sol_size, num_qpts… in main() [all …]
|
| H A D | ex3-volume.c | 47 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim… 48 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, … 50 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVecto… 127 CeedInt num_xyz[dim]; in main() local 129 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main() 132 printf("Mesh size: nx = %" CeedInt_FMT, num_xyz[0]); in main() 133 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main() 134 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main() 143 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main() 144 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1 + dim * (dim + 1) / 2, &sol_size, num_… in main() [all …]
|
| H A D | ex1-volume.c | 48 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim… 49 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, … 51 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVecto… 130 CeedInt num_xyz[dim]; in main() local 132 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main() 135 printf("Mesh size: nx = %" CeedInt_FMT, num_xyz[0]); in main() 136 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main() 137 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main() 146 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main() 147 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1, &sol_size, num_qpts, &sol_restriction… in main() [all …]
|
| H A D | ex1-volume-f.f90 | 47 integer num_xyz(3) local 70 num_xyz(d) = ISHFT(1, sd) 82 integer num_xyz(3) local 111 num_elem = num_elem * num_xyz(i) 112 nd(i) = num_xyz(i) * (p - 1) + 1 129 e_xyz(j) = mod(re, num_xyz(j)) 130 re = re/num_xyz(j) 198 integer num_xyz(3) local 218 nd(i) = num_xyz(i) * (p - 1) + 1 239 … coords(scalar_size * (j - 1) + i) = ((d_1d/(p - 1)) + nodes(mod(d_1d, p - 1) + 1))/num_xyz(j) [all …]
|
| /libCEED/examples/rust-qfunctions/ |
| H A D | ex1-volume.c | 49 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim… 50 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, … 52 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVecto… 140 CeedInt num_xyz[dim]; in main() local 142 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main() 145 printf("Mesh size: nx = %" CeedInt_FMT, num_xyz[0]); in main() 146 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main() 147 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main() 156 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main() 157 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1, &sol_size, num_qpts, &sol_restriction… in main() [all …]
|
| /libCEED/examples/rust/mesh/src/ |
| H A D | lib.rs | 47 num_xyz: [usize; 3], in build_cartesian_restriction() 61 num_elem *= num_xyz[d]; 62 num_d[d] = num_xyz[d] * (p - 1) + 1; 74 e_xyz[d] = re % num_xyz[d]; 75 re /= num_xyz[d]; 119 num_xyz: [usize; 3], in cartesian_mesh_coords() 127 num_d[d] = num_xyz[d] * (p - 1) + 1; 156 / num_xyz[d] as libceed::Scalar;
|
| /libCEED/examples/python/ |
| H A D | ex_common.py | 81 num_xyz = [] 87 num_xyz.append(1 << sd) 88 return num_xyz 91 def build_cartesian_restriction(ceed, dim, num_xyz, degree, num_comp, num_q_comp, num_qpts, create_… argument 116 num_elem *= num_xyz[d] 117 nd.append(num_xyz[d] * (p - 1) + 1) # Nodes per dimension 129 e_xyz[d] = re % num_xyz[d] 130 re //= num_xyz[d] 156 def set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords): argument 173 nd.append(num_xyz[d] * (p - 1) + 1) [all …]
|
| H A D | ex3_volume.py | 77 num_xyz = common.get_cartesian_mesh_size(dim, sol_degree, problem_size) 79 print("\nMesh size : nx = %d" % num_xyz[0], end="") 81 print(", ny = %d" % num_xyz[1], end="") 83 print(", nz = %d" % num_xyz[2], end="") 89 ceed, dim, num_xyz, mesh_degree, ncomp_x, num_q_comp, num_qpts, create_qdata=False) 91 ceed, dim, num_xyz, sol_degree, 1, num_q_comp, num_qpts, create_qdata=True) 99 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
|
| H A D | ex1_volume.py | 72 num_xyz = common.get_cartesian_mesh_size(dim, sol_degree, problem_size) 74 print("\nMesh size : nx = %d" % num_xyz[0], end="") 76 print(", ny = %d" % num_xyz[1], end="") 78 print(", nz = %d" % num_xyz[2], end="") 84 ceed, dim, num_xyz, mesh_degree, ncomp_x, num_q_comp, num_qpts, create_qdata=False) 86 ceed, dim, num_xyz, sol_degree, 1, num_q_comp, num_qpts, create_qdata=True) 94 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
|
| H A D | ex2_surface.py | 73 num_xyz = common.get_cartesian_mesh_size(dim, sol_degree, problem_size) 75 print("\nMesh size : nx = %d" % num_xyz[0], end="") 77 print(", ny = %d" % num_xyz[1], end="") 79 print(", nz = %d" % num_xyz[2], end="") 85 ceed, dim, num_xyz, mesh_degree, ncomp_x, num_q_comp, num_qpts, create_qdata=False) 87 ceed, dim, num_xyz, sol_degree, 1, num_q_comp, num_qpts, create_qdata=True) 95 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
|
| /libCEED/examples/rust/ex1-volume-vector/src/ |
| H A D | main.rs | 103 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_1_vector() localVariable 105 print!("\nMesh size : nx = {}", num_xyz[0]); in example_1_vector() 107 print!(", ny = {}", num_xyz[1]); in example_1_vector() 110 print!(", nz = {}", num_xyz[2]); in example_1_vector() 118 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_1_vector() 120 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, 1, num_qpts)?; in example_1_vector() 122 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, ncomp_u, num_qpts)?; in example_1_vector() 131 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_1_vector() 212 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_1_vector()
|
| /libCEED/examples/rust/ex1-volume/src/ |
| H A D | main.rs | 101 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_1() localVariable 103 print!("\nMesh size : nx = {}", num_xyz[0]); in example_1() 105 print!(", ny = {}", num_xyz[1]); in example_1() 108 print!(", nz = {}", num_xyz[2]); in example_1() 116 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_1() 118 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, 1, num_qpts)?; in example_1() 127 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_1() 208 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_1()
|
| /libCEED/examples/rust/ex3-volume/src/ |
| H A D | main.rs | 97 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_3() localVariable 99 print!("\nMesh size : nx = {}", num_xyz[0]); in example_3() 101 print!(", ny = {}", num_xyz[1]); in example_3() 104 print!(", nz = {}", num_xyz[2]); in example_3() 112 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_3() 116 num_xyz, in example_3() 122 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, 1, num_qpts)?; in example_3() 131 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_3() 245 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_3()
|
| /libCEED/examples/rust/ex2-surface/src/ |
| H A D | main.rs | 102 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_2() localVariable 104 print!("\nMesh size : nx = {}", num_xyz[0]); in example_2() 106 print!(", ny = {}", num_xyz[1]); in example_2() 109 print!(", nz = {}", num_xyz[2]); in example_2() 117 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_2() 121 num_xyz, in example_2() 127 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, 1, num_qpts)?; in example_2() 136 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_2() 245 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_2()
|
| /libCEED/examples/rust/ex3-volume-vector/src/ |
| H A D | main.rs | 99 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_3_vector() localVariable 101 print!("\nMesh size : nx = {}", num_xyz[0]); in example_3_vector() 103 print!(", ny = {}", num_xyz[1]); in example_3_vector() 106 print!(", nz = {}", num_xyz[2]); in example_3_vector() 114 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_3_vector() 118 num_xyz, in example_3_vector() 124 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, ncomp_u, num_qpts)?; in example_3_vector() 133 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_3_vector() 247 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_3_vector()
|
| /libCEED/examples/rust/ex2-surface-vector/src/ |
| H A D | main.rs | 104 let num_xyz = mesh::cartesian_mesh_size(dim, solution_degree, problem_size); in example_2_vector() localVariable 106 print!("\nMesh size : nx = {}", num_xyz[0]); in example_2_vector() 108 print!(", ny = {}", num_xyz[1]); in example_2_vector() 111 print!(", nz = {}", num_xyz[2]); in example_2_vector() 119 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, mesh_degree, ncomp_x, num_qpts)?; in example_2_vector() 123 num_xyz, in example_2_vector() 130 mesh::build_cartesian_restriction(&ceed, dim, num_xyz, solution_degree, ncomp_u, num_qpts)?; in example_2_vector() 139 let mut mesh_coords = mesh::cartesian_mesh_coords(&ceed, dim, num_xyz, mesh_degree, mesh_size)?; in example_2_vector() 248 let num_elem: usize = num_xyz.iter().take(dim).product(); in example_2_vector()
|