v0.16.3
Loading...
Searching...
No Matches
Macros | Functions
ftensor_matrix_block_views.cpp File Reference

Check rectangular form blocks, row offsets and column cursor strides. More...

#include <MoFEM.hpp>
#include <type_traits>

Go to the source code of this file.

Macros

#define FTENSOR_DEBUG
 

Functions

int main (int argc, char *argv[])
 

Detailed Description

Check rectangular form blocks, row offsets and column cursor strides.

Definition in file ftensor_matrix_block_views.cpp.

Macro Definition Documentation

◆ FTENSOR_DEBUG

#define FTENSOR_DEBUG

Definition at line 5 of file ftensor_matrix_block_views.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 128 of file ftensor_matrix_block_views.cpp.

128 {
129 MoFEM::Core::Initialize(&argc, &argv, nullptr,
130 "Check FTensor form matrix block views\n");
131 try {
132 CHKERR checkConstMatrixViews();
133 OpCheckBlocks op;
134 CHKERR op.check<2, 2>();
135 CHKERR op.check<3, 3>();
136 CHKERR op.check<5, 5>();
137 CHKERR op.check<6, 6>();
138 CHKERR op.check<5, 1>();
139 CHKERR op.check<1, 5>();
140 CHKERR op.check<5, 3>();
141 CHKERR op.check<1, 3>();
142 }
145 return 0;
146}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123