Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running CUAS-MPI with reading netcdf file. #1

@inwoo-park

Description

@inwoo-park

Hi developers,

I am In-Woo Park and I am trying to simulate subglacial hydrology model using CUAS-MPI. I have manually compiled all required packages as follows:

  • netcdf-c (4.9.3)
  • PETSC (3.19.3)
  • OpenMPI (=4.1.4)
  • gcc (>=9.4, gcc >= 9.0 supports stdc++-17)

Running following script encounters the following error.
I suspect the issue may be related to missing configuration options when compiling netCDF-C. Do you have any suggestions for resolving this issue?

Interestingly, when I set NN=1, the error does not occur.

  • Command
NN=2
exact=$CUASMPI_DIR/test/cuascore/integration/test-exactSteadySolution
mpirun -n $NN $exact 1000.0 101 101 31 86400 out0.nc
  • Error message
[2025-05-02 07:12:47.006] [stderr] [error] /home/inwoo/build/cuas-mpi-dev/lib/cuascore/src/NetCDFFile.cpp:239 NetCDFFile
calling nc_create_par(fileName.c_str(), NC_MPIIO | NC_NETCDF4, PETSC_COMM_WORLD, MPI_INFO_NULL, &fileId):
A netcdf error occurred:
Permission denied
Exiting.
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[561,1],1]
  Exit code:    1
--------------------------------------------------------------------------

Best regards,
Inwoo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions