()
| 266 | if array : print_array(array, debug>2) |
| 267 | |
| 268 | def main () : |
| 269 | # The arguments should be quite self-explanatory. In cases where they are |
| 270 | # not, additional comments will be given. |
| 271 | test0('abs', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 272 | test1('area', ['trig', 'quad'], ['cell']) |
| 273 | test1('aspect', ['trig', 'quad', 'tet'], ['cell']) |
| 274 | test1('aspect_gamma', ['tet'], ['cell']) |
| 275 | test0('cross', ['vector'], 2, ['point', 'cell']) |
| 276 | test0('curl', ['vector'], 1, ['point', 'cell']) |
| 277 | test1('diagonal', ['hex'], ['cell']) |
| 278 | test0('det', ['tensor'], 1, ['point', 'cell']) |
| 279 | test0('determinant', ['tensor'], 1, ['point', 'cell']) |
| 280 | test0('dot', ['scalar', 'vector'], 2, ['point', 'cell']) |
| 281 | test0('eigenvalue', ['tensor'], 1, ['point', 'cell']) |
| 282 | test0('eigenvector', ['tensor'], 1, ['point', 'cell']) |
| 283 | |
| 284 | test0('gradient', ['scalar', 'vector'], 1, ['point', 'cell']) |
| 285 | test0('inverse' , ['tensor'], 1, ['point', 'cell']) |
| 286 | test1('jacobian', ['quad', 'tet', 'hex'], ['cell']) |
| 287 | test0('laplacian', ['scalar'], 1, ['point', 'cell']) |
| 288 | test0('max', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 289 | test0('min', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 290 | test0('mean', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 291 | test0('max', ['scalar'], 1, ['point', 'cell'], testComposite=True) |
| 292 | test0('min', ['scalar'], 1, ['point', 'cell'], testComposite=True) |
| 293 | test0('mean', ['scalar'], 1, ['point', 'cell'], testComposite=True) |
| 294 | test1('max_angle', ['trig', 'quad'], ['cell']) |
| 295 | test1('min_angle', ['trig', 'quad'], ['cell']) |
| 296 | test0('mag', ['scalar', 'vector'], 1, ['point', 'cell']) |
| 297 | test1('shear', ['quad', 'hex'], ['cell']) |
| 298 | test1('skew', ['quad', 'hex'], ['cell']) |
| 299 | test0('strain', ['vector'], 1, ['point', 'cell']) |
| 300 | test1('surface_normal', ['trig'], ['cell']) |
| 301 | test0('trace', ['tensor'], 1, ['point', 'cell']) |
| 302 | test1('volume', ['tet', 'hex'], ['cell']) |
| 303 | test0('vorticity', ['vector'], 1, ['point', 'cell']) |
| 304 | |
| 305 | # note this is the only test1 that applied on points. |
| 306 | test1('vertex_normal', ['trig'], ['point']) |
| 307 | |
| 308 | # these don't work due to division by zero or taking the log of zero |
| 309 | #test0('ln', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 310 | #test0('log', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 311 | #test0('log10', ['scalar', 'vector', 'tensor'], 1, ['point', 'cell']) |
| 312 | #test0('norm', ['scalar', 'vector'], 1, ['point', 'cell']) |
| 313 | |
| 314 | if __name__ == "__main__" : |
| 315 | smtesting.ProcessCommandLineArguments() |
no test coverage detected