On Sun, Jul 14, 2024 at 4:55 AM Ivan Luthfi <ivanluth...@gmail.com> wrote:
> Hi there, I have an issue in compiling my code. Here is the warning: > MsFEM_poisson2D_DMDA. c: 159: 65: error: cannot convert ‘MatStructure’ to > ‘Mat’ {aka ‘_p_Mat*’} 159 | ierr = KSPSetOperators(ksp_direct,up. > Af,DIFFERENT_NONZERO_PATTERN);CHKERRQ(ierr);Please > ZjQcmQRYFpfptBannerStart > This Message Is From an External Sender > This message came from outside your organization. > > ZjQcmQRYFpfptBannerEnd > Hi there, I have an issue in compiling my code. Here is the warning: > > MsFEM_poisson2D_DMDA.c:159:65: error: cannot convert ‘MatStructure’ to > ‘Mat’ {aka ‘_p_Mat*’} > 159 | ierr = > KSPSetOperators(ksp_direct,up.Af,DIFFERENT_NONZERO_PATTERN);CHKERRQ(ierr); > > We removed the MatStructure flag in this call many years ago. The structure is now inferred automatically. Thanks, Matt > Please help me > -- > Best regards, > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!brkfTnuKK7Tio9g62K-XaKr_oEVo9jMQ5WVmR9pS2s7WZ5hJIEsUHwPAMXX0r368HQnLIeVYuGXDXGg-pObs$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!brkfTnuKK7Tio9g62K-XaKr_oEVo9jMQ5WVmR9pS2s7WZ5hJIEsUHwPAMXX0r368HQnLIeVYuGXDXBIT_HIK$ >