github.com/archlabjp/eeslism-go@v0.0.0-20231109122333-4bb7bfcdf292/eeslism/blrmqprt.go (about)

     1  //This file is part of EESLISM.
     2  //
     3  //Foobar is free software : you can redistribute itand /or modify
     4  //it under the terms of the GNU General Public License as published by
     5  //the Free Software Foundation, either version 3 of the License, or
     6  //(at your option) any later version.
     7  //
     8  //Foobar is distributed in the hope that it will be useful,
     9  //but WITHOUT ANY WARRANTY; without even the implied warranty of
    10  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
    11  //GNU General Public License for more details.
    12  //
    13  //You should have received a copy of the GNU General Public License
    14  //along with Foobar.If not, see < https://www.gnu.org/licenses/>.
    15  
    16  package eeslism
    17  
    18  import (
    19  	"fmt"
    20  	"io"
    21  )
    22  
    23  /* 室供給熱量、放射パネルについての出力 */
    24  var __Rmpnlprint_id int = 0
    25  
    26  func Rmpnlprint(fo io.Writer, mrk string, Simc *SIMCONTL, mon, day int, time float64, Room []*ROOM) {
    27  
    28  	if __Rmpnlprint_id == 0 {
    29  		ttlprint(fo, mrk, Simc)
    30  
    31  		for j := 0; j < 2; j++ {
    32  			if j == 0 {
    33  				fmt.Fprintf(fo, "-cat\n")
    34  			}
    35  			rmqaprint(fo, __Rmpnlprint_id, Room)
    36  			if j == 0 {
    37  				fmt.Fprintf(fo, "*\n#\n")
    38  			}
    39  			__Rmpnlprint_id++
    40  		}
    41  	}
    42  
    43  	fmt.Fprintf(fo, "%02d %02d %5.2f\n", mon, day, time)
    44  	rmqaprint(fo, __Rmpnlprint_id, Room)
    45  }