@@ -332,7 +332,7 @@ def checkBoost(env):
332332 if boostversion >= 106300 and not env ['disable_boost_numpy' ] :
333333 pyv = env ['python_version' ].split ("." )
334334 if env ["IS_OSX" ]:
335- libname = f'boost_numpy{ pyv [0 ]} { pyv [1 ]} -mt '
335+ libname = f'boost_numpy{ pyv [0 ]} { pyv [1 ]} '
336336 else :
337337 libname = f'boost_numpy{ pyv [0 ]} { pyv [1 ]} '
338338 try :
@@ -450,12 +450,12 @@ def checkForTrilinos(env):
450450 'BelosTFQMRIter.hpp' , 'BelosTFQMRSolMgr.hpp' , 'BelosTpetraAdapter.hpp' , 'BelosTypes.hpp' , \
451451 'Ifpack2_Factory.hpp' , 'Tpetra_KokkosCompat_DefaultNode.hpp' , \
452452 'MatrixMarket_Tpetra.hpp' , 'MueLu_CreateTpetraPreconditioner.hpp' , \
453- 'Teuchos_DefaultComm.hpp' , 'Teuchos_ParameterList.hpp' , \
453+ 'Teuchos_DefaultComm.hpp' , 'Teuchos_ParameterList.hpp' , 'Tpetra_BlockCrsMatrix.hpp' , \
454454 'Teuchos_Comm.hpp' , 'Teuchos_TimeMonitor.hpp' , 'Tpetra_CrsMatrix_decl.hpp' , \
455- 'Tpetra_BlockCrsMatrix_decl.hpp' , \
455+ 'Tpetra_BlockCrsMatrix_decl.hpp' , 'kokkos/Kokkos_Core.hpp' , \
456456 'Tpetra_CrsGraph.hpp' , 'Tpetra_CrsMatrix.hpp' , 'Tpetra_RowMatrix.hpp' , \
457- 'TpetraExt_TripleMatrixMultiply_def.hpp' , \
458- 'Tpetra_Vector.hpp' , 'Trilinos_version.h' ]
457+ 'TpetraExt_TripleMatrixMultiply_def.hpp' , 'Tpetra_BlockVector.hpp' , \
458+ 'Tpetra_Vector.hpp' , 'Trilinos_version.h' , 'Tpetra_BlockCrsMatrix_Helpers.hpp' ]
459459 packages = ['Tpetra' , 'Kokkos' , 'Belos' , 'Amesos2' , 'Ifpack2' , 'MueLu' ]
460460
461461 # 'Tpetra_createDeepCopy_CrsMatrix.hpp', \
@@ -467,10 +467,10 @@ def checkForTrilinos(env):
467467 trilinos_inc_path ,trilinos_lib_path = findLibWithHeader (env ,
468468 env ['trilinos_libs' ], 'Amesos2.hpp' ,
469469 env ['trilinos_prefix' ], lang = 'c++' , try_link = havelibs )
470- env .AppendUnique (CPPPATH = [trilinos_inc_path ])
470+ env .AppendUnique (CPPPATH = [trilinos_inc_path , os . path . join ( trilinos_inc_path , 'kokkos' ) ])
471471 env .AppendUnique (LIBPATH = [trilinos_lib_path ])
472472 env .PrependENVPath (env ['LD_LIBRARY_PATH_KEY' ], trilinos_lib_path )
473- env ['buildvars' ]['trilinos_inc_path' ]= trilinos_inc_path
473+ env ['buildvars' ]['trilinos_inc_path' ]= [ trilinos_inc_path , os . path . join ( trilinos_inc_path , 'kokkos' )]
474474 env ['buildvars' ]['trilinos_lib_path' ]= trilinos_lib_path
475475 #conf = Configure(env.Clone())
476476
@@ -480,7 +480,7 @@ def checkForTrilinos(env):
480480 if not os .path .isfile (os .path .join (trilinos_inc_path ,check )):
481481 print ("Could not find the Trilinos header file %s (tried looking in directory %s)" % (check , trilinos_inc_path ))
482482 env .Exit (1 )
483-
483+ # .. not relevant for new trilinos versions (REMOVE):
484484 if os .path .isfile (os .path .join (trilinos_inc_path ,'Tpetra_DefaultPlatform.hpp' )):
485485 print ("Checking for %s... %s" % ('Tpetra_DefaultPlatform.hpp' , "yes" ))
486486 env .Append (CPPDEFINES = ['ESYS_HAVE_TPETRA_DP' ])
@@ -506,7 +506,7 @@ def checkForTrilinos(env):
506506# env.Append(CPPDEFINES = ['ESYS_TRILINOS_14_2'])
507507# else:
508508 env .Append (CPPDEFINES = [f'ESYS_TRILINOS_{ major } ' ])
509-
509+ # REVISE: remove 'ESYS_HAVE_TPETRA_EXPERIMENTAL_BLOCKCRS' 'ESYS_HAVE_TPETRA_EXPERIMENTAL_BLOCKCRSH' ESYS_HAVE_TPETRA_EXPERIMENTAL_BLOCKV
510510 if os .path .isfile (os .path .join (trilinos_inc_path ,'Tpetra_BlockCrsMatrix.hpp' )):
511511 print ("Checking for %s... %s" % ('Tpetra_BlockCrsMatrix.hpp' , "yes" ) )
512512 elif os .path .isfile (os .path .join (trilinos_inc_path ,'Tpetra_Experimental_BlockCrsMatrix.hpp' )):
0 commit comments