Skip to content

JPEG output problems

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1994
    kolotinsky
    Participant

    I have recently installed openlb package on mac os. And I have faced the following problem. During the execution of examples I have noticed the warning in console output “”./tmp/imageData/data/heatMapl2physVelocity.p”, line 5: unexpected or unrecognized token”. Then when I have tried to open Jpeg output files system has given the error “could not open the file because it is empty”. Could you give me an advice, what should I do with it?

    #2930
    kolotinsky
    Participant
    Quote:
    Quote from kolotinsky on September 18, 2018, 11:29
    I have recently installed openlb package on mac os. And I have faced the following problem. During the execution of examples I have noticed the warning in console output “”./tmp/imageData/data/heatMapl2physVelocity.p”, line 5: unexpected or unrecognized token”. Then when I have tried to open Jpeg output files system has given the error “could not open the file because it is empty”. Could you give me an advice, what should I do with it?
    #2935
    Marc
    Participant

    Dear kolotinsky,
    this is an bug under mac. It will be fixed in version 1.3. Please see the following code snipple what you have to change:
    — a/src/io/gnuplotHeatMapWriter.hh
    +++ b/src/io/gnuplotHeatMapWriter.hh
    @@ -152,7 +152,7 @@ void writeHeatMapPlotFile(detailParam<T>& param) {
    fout << “} else {“;
    fout << “set terminal png ” << “size ” << 1920 << “,” << 1080 << “font \”,25\”” << “\n”;
    fout << “set output ‘”<< param.pngPath << “‘”<< “\n”;
    – fout << “}”;
    + fout << “}” << “\n”;
    fout << “set pm3d map” << “\n”;
    fout << “unset key” << “\n”;
    fout << “set size ratio -1” << “\n”;

    Best Marc

    #2936
    kolotinsky
    Participant

    Thank you very much, Marc! Your advice has helped!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.