(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.

Chang_Shu

New member
Hello,

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?

Thanks!
 
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):
Code:
rm metgrid.exe
rm metgrid/src/metgrid.exe
then re-compile just the metgrid program with:
Code:
./compile metgrid
.
 
Back
Top