@@ -9,8 +9,14 @@ |
import csip.Executable; |
import csip.ModelDataService; |
import csip.ServiceException; |
+import csip.annotations.Category; |
+import csip.annotations.Description; |
+import csip.annotations.Documentation; |
+import csip.annotations.Name; |
import csip.annotations.Resource; |
import static csip.annotations.ResourceType.*; |
+import csip.annotations.State; |
+import csip.annotations.VersionInfo; |
import java.io.File; |
import javax.ws.rs.Path; |
import static m.wrfhydro.V1_0.*; |
@@ -20,8 +26,18 @@ |
* |
* @author od |
*/ |
+@Name("WRF-Hydro") |
+@Description(" flash flood prediction, regional hydroclimate impacts " |
+ + "assessment, seasonal forecasting of water resources, and " |
+ + "land-atmosphere coupling studies.") |
+@Documentation("https://ral.ucar.edu/projects/wrf_hydro/overview") |
+@State(State.STABLE) |
+@VersionInfo("$Id$") |
+@Category("Hydrology") |
+@Category("Flood prediction") |
+ |
@Path("m/wrfhydro/1.0") |
-@Resource(file = "/usr/local/tomcat/wrf_hydro.exe", id = WRF_HYDRO, type = REFERENCE) |
+@Resource(file = "/WRF/wrf_hydro_NoahMP.exe", id = WRF_HYDRO, type = REFERENCE) |
@Resource(file = MPI, type = REFERENCE, id = MPI) |
@Resource(file = "*.00000", type = OUTPUT) |
public class V1_0 extends ModelDataService { |
@@ -42,9 +58,9 @@ |
File wrf_hydro = resources().getFile(WRF_HYDRO); |
|
mpi.addArguments("--allow-run-as-root", |
- "--path", wrf_hydro.getParent(), |
+ "-path", wrf_hydro.getParent(), |
"-wdir", getWorkspaceDir(), |
- "--oversubscribe", |
+// "--oversubscribe", |
"-np", threads, |
wrf_hydro.getName() |
); |
@@ -54,5 +70,5 @@ |
throw new ServiceException("Error running mpi wrf_hydro:" + ret); |
} |
} |
- |
+ |
} |