Elaboradar  0.1

◆ write_vpr_hmax()

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 322 del file assets.cpp.

323 {
324  const char* fname = getenv("VPR_HMAX");
325  if (!fname) throw runtime_error("$VPR_HMAX is not set");
326  FILE* out = fopen_checked(fname, "wt", "hmax VPR");
327  fprintf(out, "%d", hvprmax);
328  fclose(out);
329 }
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

Referenzia radarelab::fopen_checked().