@@ -91,14 +91,14 @@ static int CeedOperatorSetupFields_Cuda(CeedQFunction qf, CeedOperator op,
9191 bool skiprestrict ;
9292
9393 if (inOrOut ) {
94- ierr = CeedOperatorGetFields (op , NULL , & opfields );
94+ ierr = CeedOperatorGetFields (op , NULL , NULL , NULL , & opfields );
9595 CeedChkBackend (ierr );
96- ierr = CeedQFunctionGetFields (qf , NULL , & qffields );
96+ ierr = CeedQFunctionGetFields (qf , NULL , NULL , NULL , & qffields );
9797 CeedChkBackend (ierr );
9898 } else {
99- ierr = CeedOperatorGetFields (op , & opfields , NULL );
99+ ierr = CeedOperatorGetFields (op , NULL , & opfields , NULL , NULL );
100100 CeedChkBackend (ierr );
101- ierr = CeedQFunctionGetFields (qf , & qffields , NULL );
101+ ierr = CeedQFunctionGetFields (qf , NULL , & qffields , NULL , NULL );
102102 CeedChkBackend (ierr );
103103 }
104104
@@ -198,13 +198,13 @@ static int CeedOperatorSetup_Cuda(CeedOperator op) {
198198 CeedInt Q , numelements , numinputfields , numoutputfields ;
199199 ierr = CeedOperatorGetNumQuadraturePoints (op , & Q ); CeedChkBackend (ierr );
200200 ierr = CeedOperatorGetNumElements (op , & numelements ); CeedChkBackend (ierr );
201- ierr = CeedQFunctionGetNumArgs (qf , & numinputfields , & numoutputfields );
202201 CeedChkBackend (ierr );
203202 CeedOperatorField * opinputfields , * opoutputfields ;
204- ierr = CeedOperatorGetFields (op , & opinputfields , & opoutputfields );
203+ ierr = CeedOperatorGetFields (op , & numinputfields , & opinputfields ,
204+ & numoutputfields , & opoutputfields );
205205 CeedChkBackend (ierr );
206206 CeedQFunctionField * qfinputfields , * qfoutputfields ;
207- ierr = CeedQFunctionGetFields (qf , & qfinputfields , & qfoutputfields );
207+ ierr = CeedQFunctionGetFields (qf , NULL , & qfinputfields , NULL , & qfoutputfields );
208208 CeedChkBackend (ierr );
209209
210210 // Allocate
@@ -396,13 +396,13 @@ static int CeedOperatorApplyAdd_Cuda(CeedOperator op, CeedVector invec,
396396 CeedInt Q , numelements , elemsize , numinputfields , numoutputfields , size ;
397397 ierr = CeedOperatorGetNumQuadraturePoints (op , & Q ); CeedChkBackend (ierr );
398398 ierr = CeedOperatorGetNumElements (op , & numelements ); CeedChkBackend (ierr );
399- ierr = CeedQFunctionGetNumArgs (qf , & numinputfields , & numoutputfields );
400399 CeedChkBackend (ierr );
401400 CeedOperatorField * opinputfields , * opoutputfields ;
402- ierr = CeedOperatorGetFields (op , & opinputfields , & opoutputfields );
401+ ierr = CeedOperatorGetFields (op , & numinputfields , & opinputfields ,
402+ & numoutputfields , & opoutputfields );
403403 CeedChkBackend (ierr );
404404 CeedQFunctionField * qfinputfields , * qfoutputfields ;
405- ierr = CeedQFunctionGetFields (qf , & qfinputfields , & qfoutputfields );
405+ ierr = CeedQFunctionGetFields (qf , NULL , & qfinputfields , NULL , & qfoutputfields );
406406 CeedChkBackend (ierr );
407407 CeedEvalMode emode ;
408408 CeedVector vec ;
@@ -531,13 +531,13 @@ static int CeedOperatorLinearAssembleQFunction_Cuda(CeedOperator op,
531531 CeedInt Q , numelements , numinputfields , numoutputfields , size ;
532532 ierr = CeedOperatorGetNumQuadraturePoints (op , & Q ); CeedChkBackend (ierr );
533533 ierr = CeedOperatorGetNumElements (op , & numelements ); CeedChkBackend (ierr );
534- ierr = CeedQFunctionGetNumArgs (qf , & numinputfields , & numoutputfields );
535534 CeedChkBackend (ierr );
536535 CeedOperatorField * opinputfields , * opoutputfields ;
537- ierr = CeedOperatorGetFields (op , & opinputfields , & opoutputfields );
536+ ierr = CeedOperatorGetFields (op , & numinputfields , & opinputfields ,
537+ & numoutputfields , & opoutputfields );
538538 CeedChkBackend (ierr );
539539 CeedQFunctionField * qfinputfields , * qfoutputfields ;
540- ierr = CeedQFunctionGetFields (qf , & qfinputfields , & qfoutputfields );
540+ ierr = CeedQFunctionGetFields (qf , NULL , & qfinputfields , NULL , & qfoutputfields );
541541 CeedChkBackend (ierr );
542542 CeedVector vec ;
543543 CeedInt numactivein = 0 , numactiveout = 0 ;
@@ -885,8 +885,10 @@ static inline int CeedOperatorAssembleDiagonalSetup_Cuda(CeedOperator op,
885885 // Determine active input basis
886886 CeedOperatorField * opfields ;
887887 CeedQFunctionField * qffields ;
888- ierr = CeedOperatorGetFields (op , & opfields , NULL ); CeedChkBackend (ierr );
889- ierr = CeedQFunctionGetFields (qf , & qffields , NULL ); CeedChkBackend (ierr );
888+ ierr = CeedOperatorGetFields (op , NULL , & opfields , NULL , NULL );
889+ CeedChkBackend (ierr );
890+ ierr = CeedQFunctionGetFields (qf , NULL , & qffields , NULL , NULL );
891+ CeedChkBackend (ierr );
890892 CeedInt numemodein = 0 , ncomp = 0 , dim = 1 ;
891893 CeedEvalMode * emodein = NULL ;
892894 CeedBasis basisin = NULL ;
@@ -932,8 +934,10 @@ static inline int CeedOperatorAssembleDiagonalSetup_Cuda(CeedOperator op,
932934 }
933935
934936 // Determine active output basis
935- ierr = CeedOperatorGetFields (op , NULL , & opfields ); CeedChkBackend (ierr );
936- ierr = CeedQFunctionGetFields (qf , NULL , & qffields ); CeedChkBackend (ierr );
937+ ierr = CeedOperatorGetFields (op , NULL , NULL , NULL , & opfields );
938+ CeedChkBackend (ierr );
939+ ierr = CeedQFunctionGetFields (qf , NULL , NULL , NULL , & qffields );
940+ CeedChkBackend (ierr );
937941 CeedInt numemodeout = 0 ;
938942 CeedEvalMode * emodeout = NULL ;
939943 CeedBasis basisout = NULL ;
0 commit comments