Lines Matching +full:- +full:vv
1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
8 //! A Ceed QFunction represents the spatial terms of the point-wise functions
18 // -----------------------------------------------------------------------------
20 // -----------------------------------------------------------------------------
27 // -----------------------------------------------------------------------------
29 // -----------------------------------------------------------------------------
35 /// # fn main() -> libceed::Result<()> {
47 pub fn name(&self) -> &str { in name()
62 /// # fn main() -> libceed::Result<()> {
74 pub fn size(&self) -> usize { in size()
86 /// # fn main() -> libceed::Result<()> {
106 pub fn eval_mode(&self) -> crate::EvalMode { in eval_mode()
115 // -----------------------------------------------------------------------------
117 // -----------------------------------------------------------------------------
126 fn from(qfunc: &'a QFunction) -> Self { in from()
134 fn from(qfunc: &'a QFunctionByName) -> Self { in from()
142 pub(crate) fn to_raw(&self) -> bind_ceed::CeedQFunction { in to_raw()
154 /// # fn main() -> libceed::Result<()> {
183 pub fn is_some(&self) -> bool { in is_some()
195 /// # fn main() -> libceed::Result<()> {
224 pub fn is_some_q_function(&self) -> bool { in is_some_q_function()
236 /// # fn main() -> libceed::Result<()> {
274 pub fn is_some_q_function_by_name(&self) -> bool { in is_some_q_function_by_name()
286 /// # fn main() -> libceed::Result<()> {
315 pub fn is_none(&self) -> bool { in is_none()
324 // -----------------------------------------------------------------------------
326 // -----------------------------------------------------------------------------
352 // -----------------------------------------------------------------------------
354 // -----------------------------------------------------------------------------
373 // -----------------------------------------------------------------------------
375 // -----------------------------------------------------------------------------
377 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
393 /// # fn main() -> libceed::Result<()> {
416 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
425 /// # fn main() -> libceed::Result<()> {
433 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
438 // -----------------------------------------------------------------------------
440 // -----------------------------------------------------------------------------
444 fn ceed(&self) -> bind_ceed::Ceed { in ceed()
450 fn check_error(&self, ierr: i32) -> crate::Result<i32> { in check_error()
455 pub fn apply(&self, Q: usize, u: &[Vector], v: &[Vector]) -> crate::Result<i32> { in apply()
470 pub fn inputs(&self) -> crate::Result<&[QFunctionField]> { in inputs()
490 pub fn outputs(&self) -> crate::Result<&[QFunctionField]> { in outputs()
511 // -----------------------------------------------------------------------------
513 // -----------------------------------------------------------------------------
517 ) -> i32;
531 ) -> ::std::os::raw::c_int { in trampoline()
569 // -----------------------------------------------------------------------------
571 // -----------------------------------------------------------------------------
578 ) -> crate::Result<Self> { in create()
640 /// * `Q` - The number of quadrature points
641 /// * `input` - Array of input Vectors
642 /// * `output` - Array of output Vectors
646 /// # fn main() -> libceed::Result<()> {
670 /// let x = 2. * (i as Scalar) / ((Q as Scalar) - 1.) - 1.;
672 /// w[i] = 1. - x * x;
678 /// let mut vv = ceed.vector(Q)?;
679 /// vv.set_value(0.0);
682 /// let mut output = vec![vv];
684 /// vv = output.remove(0);
687 /// vv.view()?
699 pub fn apply(&self, Q: usize, u: &[Vector], v: &[Vector]) -> crate::Result<i32> { in apply()
705 /// * `fieldname` - Name of QFunction field
706 /// * `size` - Size of QFunction field, `(ncomp * dim)` for `Grad` or
708 /// * `emode` - `EvalMode::None` to use values directly, `EvalMode::Interp`
714 /// # fn main() -> libceed::Result<()> {
738 ) -> crate::Result<Self> { in input()
755 /// * `fieldname` - Name of QFunction field
756 /// * `size` - Size of QFunction field, `(ncomp * dim)` for `Grad` or
758 /// * `emode` - `EvalMode::None` to use values directly, `EvalMode::Interp`
764 /// # fn main() -> libceed::Result<()> {
787 ) -> crate::Result<Self> { in output()
806 /// # fn main() -> libceed::Result<()> {
829 pub fn inputs(&self) -> crate::Result<&[QFunctionField]> { in inputs()
837 /// # fn main() -> libceed::Result<()> {
859 pub fn outputs(&self) -> crate::Result<&[QFunctionField]> { in outputs()
864 // -----------------------------------------------------------------------------
866 // -----------------------------------------------------------------------------
869 pub fn create(ceed: &crate::Ceed, name: &str) -> crate::Result<Self> { in create()
885 /// * `Q` - The number of quadrature points
886 /// * `input` - Array of input Vectors
887 /// * `output` - Array of output Vectors
891 /// # fn main() -> libceed::Result<()> {
903 /// let x = 2. * (i as Scalar) / ((Q as Scalar) - 1.) - 1.;
905 /// w[i] = 1. - x * x;
913 /// let mut vv = ceed.vector(Q)?;
914 /// vv.set_value(0.0);
927 /// let mut output = vec![vv];
929 /// vv = output.remove(0);
932 /// vv.view()?
944 pub fn apply(&self, Q: usize, u: &[Vector], v: &[Vector]) -> crate::Result<i32> { in apply()
952 /// # fn main() -> libceed::Result<()> {
963 pub fn inputs(&self) -> crate::Result<&[QFunctionField]> { in inputs()
971 /// # fn main() -> libceed::Result<()> {
982 pub fn outputs(&self) -> crate::Result<&[QFunctionField]> { in outputs()
987 // -----------------------------------------------------------------------------