[petsc-users] Seeking help in integration Petsc with NoahMP

Barry Smith bsmith at petsc.dev
Sat Sep 20 20:49:47 CDT 2025


  Instead of writing to 6 try opening a file and writing to that. It seems like somewhere earlier in the code it is changing the the IO units. Or better just run in the debugger and put a break point in at that line


> On Sep 19, 2025, at 6:55 AM, Matthew Knepley <knepley at gmail.com> wrote:
> 
> On Thu, Sep 18, 2025 at 9:25 PM Shatanawi, Sawsan Muhammad via petsc-users <petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>> wrote:
>> Hello everyone,
>> I developed a groundwater module to be integrated within Noah-MP using the HRLDAS driver. For the numerical solver, I rely on PETSc. However, I am encountering an error that I do not fully understand.
>> To debug, I added print statements in the global NoahmpIOVarType.F90 module (This is the first module that needs to be read), but these statements did not appear in the output. This makes me wonder if I may have declared the PETSc variables incorrectly.
> Are you calling the function you added?
> 
>   Thanks,'
> 
>     Matt
>  
>> Could you please review my NoahmpIOVarType.F90 module and Makefile, let me know if the PETSc variables are declared in the correct place? I would greatly appreciate any guidance on this issue.
>> Thank you in advance
>> Best regards,
>> Sawsan Shatanawi:
>> 
> 
> 
> 
> -- 
> 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!Z5sBe9AbSfvxy4foyp51iQG3j2pIg28MKbaO9EzU-hhC3D9ynruEFL9ZdpQb2bwi7jp2ivfm8GC9W-kpXhIkBoM$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZqrI3yhHcgsmY0-w0j_m1IWXQb6BPVXBEYspZHgD-EGre3tYQNnPaQbxjnMIEbdftA9k4Z4kFSBVGg9i167G$>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250920/aa5fa53f/attachment.html>


More information about the petsc-users mailing list