Code Saturne 6 Beta

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
makeclean
Posts: 1
Joined: Wed Jul 31, 2019 2:00 pm

Code Saturne 6 Beta

Post by makeclean »

Hi

Installing on FC30 with GCC-9.1.1 (I suspect this is the issue)


PYTHON=python3 ../configure --prefix=/home/adavis/opt/code_saturne

I get the following compilation error

Code: Select all

../../../src/cdo/cs_cdofb_ac.c: In function ‘cs_cdofb_ac_compute_implicit’:
../../../src/cdo/cs_cdofb_ac.c:880:36: error: ‘dt_cur’ not specified in enclosing ‘parallel’
  880 |     const cs_real_t  inv_dtcur = 1./dt_cur;
      |                                  ~~^~~~~~~
../../../src/cdo/cs_cdofb_ac.c:860:10: error: enclosing ‘parallel’
  860 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)     \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:883:5: error: ‘time_eval’ not specified in enclosing ‘parallel’
  883 |     cs_equation_init_properties(mom_eqp, mom_eqb, time_eval, cb);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/cdo/cs_cdofb_ac.c:860:10: error: enclosing ‘parallel’
  860 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)     \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:992:9: error: ‘__func__’ not specified in enclosing ‘parallel’
  992 |         bft_error(__FILE__, __LINE__, 0, " %s: Only diagonal time treatment "
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  993 |             "available so far.\n", __func__);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/cdo/cs_cdofb_ac.c:860:10: error: enclosing ‘parallel’
  860 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)     \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c: In function ‘cs_cdofb_ac_compute_theta’:
../../../src/cdo/cs_cdofb_ac.c:1205:5: error: ‘time_eval’ not specified in enclosing ‘parallel’
 1205 |     cs_equation_init_properties(mom_eqp, mom_eqb, time_eval, cb);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/cdo/cs_cdofb_ac.c:1184:10: error: enclosing ‘parallel’
 1184 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:1248:7: error: ‘t_cur’ not specified in enclosing ‘parallel’
 1248 |       cs_cdofb_navsto_define_builder(t_cur + dt_cur, nsp, cm, csys,
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1249 |                                      sc->pressure_bc, sc->bf_type,
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1250 |                                      &nsb);
      |                                      ~~~~~
../../../src/cdo/cs_cdofb_ac.c:1184:10: error: enclosing ‘parallel’
 1184 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:1248:7: error: ‘dt_cur’ not specified in enclosing ‘parallel’
 1248 |       cs_cdofb_navsto_define_builder(t_cur + dt_cur, nsp, cm, csys,
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1249 |                                      sc->pressure_bc, sc->bf_type,
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1250 |                                      &nsb);
      |                                      ~~~~~
../../../src/cdo/cs_cdofb_ac.c:1184:10: error: enclosing ‘parallel’
 1184 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:1278:11: error: ‘tcoef’ not specified in enclosing ‘parallel’
 1278 |           cs_cdofb_vecteq_sourceterm(cm, mom_eqp,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1279 |                                      t_cur, tcoef,  /* time, scaling */
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1280 |                                      cb, mom_eqb, csys);
      |                                      ~~~~~~~~~~~~~~~~~~
../../../src/cdo/cs_cdofb_ac.c:1184:10: error: enclosing ‘parallel’
 1184 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
../../../src/cdo/cs_cdofb_ac.c:1342:9: error: ‘__func__’ not specified in enclosing ‘parallel’
 1342 |         bft_error(__FILE__, __LINE__, 0, " %s: Only diagonal time treatment "
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1343 |             "available so far.\n", __func__);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/cdo/cs_cdofb_ac.c:1184:10: error: enclosing ‘parallel’
 1184 | # pragma omp parallel if (quant->n_cells > CS_THR_MIN) default(none)    \
      |          ^~~
I suspect due to how new the compiler is, it may be bugging out on this section.

Thanks

Is this the first time this has been seen?
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Code Saturne 6 Beta

Post by Yvan Fournier »

Hello,

Yes, I have fixed/worked around similar issues on the master branch (using gcc 9.1), but it seems they were not merged on 6.0. I'll merge this on 6.0 by tomorrow and release a new beta...

Best regards,

Yvan
Post Reply