{"action":"closed","issue":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/1015","repository_url":"https://api.github.com/repos/trilinos/Trilinos","labels_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1015/comments","events_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1015/events","html_url":"https://github.com/trilinos/Trilinos/issues/1015","id":202029044,"number":1015,"title":"InsertGlobalValues and fill complete in TpetraCrsMatrix","user":{"login":"kvmkrao","id":14120428,"avatar_url":"https://avatars.githubusercontent.com/u/14120428?v=3","gravatar_id":"","url":"https://api.github.com/users/kvmkrao","html_url":"https://github.com/kvmkrao","followers_url":"https://api.github.com/users/kvmkrao/followers","following_url":"https://api.github.com/users/kvmkrao/following{/other_user}","gists_url":"https://api.github.com/users/kvmkrao/gists{/gist_id}","starred_url":"https://api.github.com/users/kvmkrao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvmkrao/subscriptions","organizations_url":"https://api.github.com/users/kvmkrao/orgs","repos_url":"https://api.github.com/users/kvmkrao/repos","events_url":"https://api.github.com/users/kvmkrao/events{/privacy}","received_events_url":"https://api.github.com/users/kvmkrao/received_events","type":"User","site_admin":false},"labels":[{"id":335017049,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/performance","name":"performance","color":"bfe5bf","default":false},{"id":287520108,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/question","name":"question","color":"cc317c","default":true},{"id":289606028,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/Tpetra","name":"Tpetra","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-20T02:05:05Z","updated_at":"2017-01-20T17:08:43Z","closed_at":"2017-01-20T17:08:43Z","body":"I used Tpetra to created a contiguous row map. The map is used to create objects for a sparse matrix of bandwidth 7(_A_) and vectors (x and b). The non-zero entries in the matrix are inserted via InsertGlobalValues().\r\nfor (int i=0; i< numMyElements; i++) { \r\n_A_->insertGlobalValues (gblRow, NumEntries, Values, Indices);\r\n}\r\n_A-_>fillComplete ();\r\n\r\nThe CrsMatrix (_A_) and MultiVectors are used to create the problem (Ax=b). And the problem is solved with BiCGStab (BiCGStabSolMgr) in Belos.\r\nI looked at the time spent in filling the matrix, Belos: BiCGStabSolMgr total solve time, Belos: Operation Op*x and Belos: Operation Prec*x and observed that the most of the time is spent in filling the sparse matrix. \r\n\r\nI am using Trilinos to solve the system of equations from a finite volume algorithm. The calls to trilinos at each inner iterations indicate the filling the Sparse matrix and vector and solving the system of equations with Belos.   \r\n\r\n```\r\ntime step 1 \r\n  inner iteration 1 //calculate the non-zero entries in the matrix and vector\r\n  call trilinos         // Trilinos solves the system of equations \r\n  inner iterations 2    //calculate the non-zero entries in the matrix and vector\r\n  call trilionos       // Trilinos solves the system of equations  \r\n.\r\n\r\ntime step 2 \r\n  inner iteration 1 //calculate the non-zero entries in the matrix and vector\r\n  call trilinos         // Trilinos solves the system of equations \r\n```\r\nPlease let me know the procedure to reduce the time spend in filling the matrix. "}}
{"actor":{"display_login":"mhoemmen"}}