Quick DBCSR matrix question

Adam aml... at ucdavis.edu
Tue Jul 31 20:00:09 CEST 2012


Is there an easy way to retrieve matrix data by row and column? So I could 
do something like this to store values in an array:

Real(8) :: BO(1000,1000)
...
DO j=1, dbcsr_nblkcols_total(matrix_a)
    DO i=1, dbcsr_nblkrows_total(matrix_a)
         dbcsr_function(matrix_a, i, j, data)
         BO(i,j)=data
    ENDDO
ENDDO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20120731/1fdd20cf/attachment.html>


More information about the CP2K-user mailing list