Output Error when using convert_mpas

138 views
Skip to first unread message

Molulaqhooa Maoyi

unread,
Sep 2, 2018, 4:07:25 PM9/2/18
to MPAS-Atmosphere Help
Greetings,

I am trying to run the convert_mpas code and there is an issue with creating the output file (see below). Can anyone suggest what the issue might
be.


 
Reading MPAS mesh information from file 'x1.10242.init.nc'
 
 Target domain specification file 'target_domain' not found.
 Default 0.5-degree global target domain will be used.
 
 
 Computing remapping weights
    Time to compute remap weights:   4.600999 s
 Error: Problems opening output file
5


Kind Regards
Linda

MPAS-Atmosphere Help

unread,
Sep 4, 2018, 5:40:28 PM9/4/18
to MPAS-Atmosphere Help
Hi, Linda.

There could be a couple of reasons why the convert_mpas program is unable to open the output file. Can you verify that you are running convert_mpas from a directory that is writable by you? Also, can you check whether there is an existing 'latlon.nc' file for which you may not have write permissions?

Kind regards,
Michael

Molulaqhooa Maoyi

unread,
Sep 5, 2018, 8:50:29 AM9/5/18
to mpas-atmos...@googlegroups.com
Hi Micheal

I can confirm that I have write privileges on the directory and there is no existing latlon.nc file in the directory. I initially thought that was the issue but I am not sure now. Any advice ?

Kind Regards
Linda 

--
You received this message because you are subscribed to a topic in the Google Groups "MPAS-Atmosphere Help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpas-atmosphere-help/m0d8R2iwKok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpas-atmosphere-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
"Try and Fail than to Fail to Try" - Israel Maoyi

MPAS-Atmosphere Help

unread,
Sep 5, 2018, 12:35:12 PM9/5/18
to MPAS-Atmosphere Help
Hi, Linda.

That's curious. The problem seems to be originating from the file_output_open(...) function defined in file_output.F. If the 'atlon.nc' file doesn't already exist, there are really only two things that happen in this function: (1) we try to create a new 'latlon.nc' file, and (2) we try to define a netCDF unlimited dimension in that file. I've attached a small test program that captures the essential netCDF library calls from the file_output_open(...) function. Can you try compiling the attached with, e.g.,

gfortran -O2 -ffree-form -Wall open_test.F `nc-config --fflags` `nc-config --flibs`

This compilation command should replicate what is done in the convert_mpas build, assuming you have no local modifications to any of the Makefiles. If you're able to get a "Success" message from the test program, then the problem would seem to be specific to convert_mpas; otherwise, there may be a problem with your netCDF library, shell environment, or something else.

Best regards,
Michael


On Wednesday, September 5, 2018 at 6:50:29 AM UTC-6, Molulaqhooa Maoyi wrote:
Hi Micheal

I can confirm that I have write privileges on the directory and there is no existing latlon.nc file in the directory. I initially thought that was the issue but I am not sure now. Any advice ?

Kind Regards
Linda 

On Tue, Sep 4, 2018 at 11:40 PM MPAS-Atmosphere Help <mpas-atmosphere-help@googlegroups.com> wrote:
Hi, Linda.

There could be a couple of reasons why the convert_mpas program is unable to open the output file. Can you verify that you are running convert_mpas from a directory that is writable by you? Also, can you check whether there is an existing 'latlon.nc' file for which you may not have write permissions?

Kind regards,
Michael


On Sunday, September 2, 2018 at 2:07:25 PM UTC-6, Molulaqhooa Maoyi wrote:
Greetings,

I am trying to run the convert_mpas code and there is an issue with creating the output file (see below). Can anyone suggest what the issue might
be.


 
Reading MPAS mesh information from file 'x1.10242.init.nc'
 
 Target domain specification file 'target_domain' not found.
 Default 0.5-degree global target domain will be used.
 
 
 Computing remapping weights
    Time to compute remap weights:   4.600999 s
 Error: Problems opening output file
5


Kind Regards
Linda

--
You received this message because you are subscribed to a topic in the Google Groups "MPAS-Atmosphere Help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpas-atmosphere-help/m0d8R2iwKok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpas-atmosphere-help+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
open_test.F

Molulaqhooa Maoyi

unread,
Sep 7, 2018, 4:35:17 AM9/7/18
to mpas-atmos...@googlegroups.com
Thanks Micheal

I will try that out.

Kind Regards
Linda

On Wed, Sep 5, 2018 at 6:35 PM MPAS-Atmosphere Help <mpas-atmos...@googlegroups.com> wrote:
Hi, Linda.

That's curious. The problem seems to be originating from the file_output_open(...) function defined in file_output.F. If the 'atlon.nc' file doesn't already exist, there are really only two things that happen in this function: (1) we try to create a new 'latlon.nc' file, and (2) we try to define a netCDF unlimited dimension in that file. I've attached a small test program that captures the essential netCDF library calls from the file_output_open(...) function. Can you try compiling the attached with, e.g.,

gfortran -O2 -ffree-form -Wall open_test.F `nc-config --fflags` `nc-config --flibs`

This compilation command should replicate what is done in the convert_mpas build, assuming you have no local modifications to any of the Makefiles. If you're able to get a "Success" message from the test program, then the problem would seem to be specific to convert_mpas; otherwise, there may be a problem with your netCDF library, shell environment, or something else.

Best regards,
Michael


On Wednesday, September 5, 2018 at 6:50:29 AM UTC-6, Molulaqhooa Maoyi wrote:
Hi Micheal

I can confirm that I have write privileges on the directory and there is no existing latlon.nc file in the directory. I initially thought that was the issue but I am not sure now. Any advice ?

Kind Regards
Linda 

On Tue, Sep 4, 2018 at 11:40 PM MPAS-Atmosphere Help <mpas-atmos...@googlegroups.com> wrote:
Hi, Linda.

There could be a couple of reasons why the convert_mpas program is unable to open the output file. Can you verify that you are running convert_mpas from a directory that is writable by you? Also, can you check whether there is an existing 'latlon.nc' file for which you may not have write permissions?

Kind regards,
Michael


On Sunday, September 2, 2018 at 2:07:25 PM UTC-6, Molulaqhooa Maoyi wrote:
Greetings,

I am trying to run the convert_mpas code and there is an issue with creating the output file (see below). Can anyone suggest what the issue might
be.


 
Reading MPAS mesh information from file 'x1.10242.init.nc'
 
 Target domain specification file 'target_domain' not found.
 Default 0.5-degree global target domain will be used.
 
 
 Computing remapping weights
    Time to compute remap weights:   4.600999 s
 Error: Problems opening output file
5


Kind Regards
Linda

--
You received this message because you are subscribed to a topic in the Google Groups "MPAS-Atmosphere Help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpas-atmosphere-help/m0d8R2iwKok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpas-atmosphere-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
"Try and Fail than to Fail to Try" - Israel Maoyi

--
You received this message because you are subscribed to a topic in the Google Groups "MPAS-Atmosphere Help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpas-atmosphere-help/m0d8R2iwKok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpas-atmosphere-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Molulaqhooa Maoyi

unread,
Sep 18, 2018, 4:45:45 AM9/18/18
to mpas-atmos...@googlegroups.com
Hi Micheal

Thanks for your help. I managed to get the convert_mpas utility working. Can you suggest a program I can use to create my own MESH for MPAS. I would like to create a variable resolutiomn MESH of 240KM - ~50 KM. I have used the Quasi-Uniform 240KM mesh and would like to compare the Uniform vs the 240KM- ~50KM.

Kind Regards
Linda
Reply all
Reply to author
Forward
0 new messages