~grm08/fluidity/hilbert-for-pyop2

« back to all changes in this revision

Viewing changes to assemble/Adapt_Integration.F90

  • Committer: Stephan Kramer
  • Date: 2011-04-22 17:28:48 UTC
  • mfrom: (3448.1.1 fluidity)
  • Revision ID: s.kramer@imperial.ac.uk-20110422172848-ay26j9c5qilnvfr5
Extending ewrite_minmax macro to work with scalar/vector/tensor_fields and (block_)csr_matrices.

Instead of:

  do dim=1, field%dim
    ewrite_minmax(field%val(dim,:))
  end do

, simply do:

  ewrite_minmax(field)

As an added bonus the field%name will also be written to the log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
      end do
661
661
      
662
662
      call element_quality_pain_p0(output_positions, new_metric, quality)
663
 
      ewrite_minmax(quality%val)
 
663
      ewrite_minmax(quality)
664
664
      call vtk_write_fields("adapted_quality", index = output_quality_index, &
665
665
        & position = output_positions, model = output_positions%mesh, &
666
666
        & sfields = (/quality/), tfields = (/new_metric/))