Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
void elaboradar::Assets::write_vpr_hmax ( int  hvprmax)

write in $VPR_HMAX the vpr peak's height.

Parametri
[in]hvprmax- value [m]

Definizione alla linea 320 del file assets.cpp.

Referenzia radarelab::fopen_checked().

321 {
322  const char* fname = getenv("VPR_HMAX");
323  if (!fname) throw runtime_error("$VPR_HMAX is not set");
324  FILE* out = fopen_checked(fname, "wt", "hmax VPR");
325  fprintf(out, "%d", hvprmax);
326  fclose(out);
327 }
FILE * fopen_checked(const char *fname, const char *mode, const char *description)
A wrapper of fopen that throws an exception if it cannot open the file.
Definition: utils.cpp:144