-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tpetra::Vector errors #13687
Comments
|
@cgcgcg I have attached the section of code below: #include <Sacado.hpp> // For stochastic modeling (Sacado) // Define the stochastic parameterized variable (using Sacado)
private: int main(int argc, char* argv[]) {
} Thank you for your quick response! |
should do the trick. Tpetra might set default values for some of the template arguments, or they might get inferred from the map. Note that this changes the type of |
@ Kokkos @cgcgcg That fix the error I was getting in Teuchos, however I am now getting an error when I try to invoke the Kokkos::View. This is the error, that I get:
I here is the updates sub module:
Thank you for your help in advance! Happy Holidays! |
Ah, yep.
or
|
@cgcgcg the first one fixed the issue! Thank you so much for your help! |
@tpetra
I am trying to construct Tpetra::Vector from a Tpetra::Map, but the compiler errors suggest that no matching constructor exists for this operation. Additionally, you encountered an error with accessing vector elements using operator[], which isn't supported by Tpetra::Vector.
I am getting the following errors in my model:
OA_try/main.cpp: In function ‘int main(int, char**)’:
/home/t**/OA_try/main.cpp:62:33: error: no matching function for call to ‘Tpetra::Vector::Vector(Tpetra::Map<int, long long int, Tpetra::KokkosCompat::KokkosDeviceWrapperNodeKokkos::Serial >&)’
62 | Tpetra::Vector x(map); // The state vector [pH, CO2]
note: candidate expects 0 arguments, 1 provided
/home/t**/OA_try/main.cpp:67:36: error: no matching function for call to ‘Tpetra::Vector::Vector(Tpetra::Map<int, long long int, Tpetra::KokkosCompat::KokkosDeviceWrapperNodeKokkos::Serial >&)’
67 | Tpetra::Vector dxdt(map); // Vector to store the time derivative
Any advice on how to over come these issues with Tpetra, would be greatly appreciated!
The text was updated successfully, but these errors were encountered: