Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

(RESOLVED) Recover deleted metgrid.exe

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


New member

When I was intended to run the metgrid.exe program with the command:
./metgrid.exe &> metgrid.log

, I mistakenly typed:
./metgrid.exe &> metgrid.exe

Then the metgrid.exe program was overwritten by a log file.
Is there any way to recover the metgrid.exe program easily without the compilation?

Unless you happen to have made a copy of metgrid.exe, I think your only option is to recompile. Without re-running the configure script, you can remove the log file that is named metgrid.exe (using two commands, since metgrid.exe is actually a symbolic link to metgrid/src/metgrid.exe):
rm metgrid.exe
rm metgrid/src/metgrid.exe
then re-compile just the metgrid program with:
./compile metgrid