Ask Your Question

Using NC4PAR with diagnostics

asked 2020-12-22 07:00:31 +0200


When using NC4PAR with diagnostics enabled I get a netcdf error in wrt_grid.F, for example:

WRT_GRID - error while writing variable 'spherical' into netCDF file ''.

Everything works fine if NC4PAR is undefined.

It appears to me that all the def_diags*.F files are quite different from the def_his.F, as def_his.F has frequent flags throughout to check if NC4PAR is defined, and if so to define the netcdf file as parallel.

My question then is, am I correct that NC4PAR is not currently functional with diagnostics?

If so, would the solution to this be adding similar logic (as in def_his.F) to the def_diags*.F files?

The speed increase with the parallel writing is quite nice, and it would be great to have it with the diagnostics files as well.

Thanks very much for your help!


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2020-12-22 14:13:39 +0200

Rachid gravatar image

Hi Jacob Yes it's a defect, it still has to be added for the diagnostics. But you're right on the fix, you have to follow the exact similar logic in def_diag as in def_his : define the file as parallel, and define the variables as variables to be written in parallel Rachid

edit flag offensive delete link more

answered 2020-12-22 15:21:34 +0200

Thanks very much Rachid.

I appreciate the quick response. I am dealing with a new computing environment, and wanted to be sure that it wasn't something about my setup, and was indeed just the current state of the code.

Best regards, Jacob

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-12-22 07:00:31 +0200

Seen: 214 times

Last updated: Dec 22 '20