modified meb exporter to accept mire than 200 surfaces

This commit is contained in:
Pilar 2023-02-13 06:49:55 -05:00
parent 4621ed7b1a
commit ef659b3798

View File

@ -182,8 +182,10 @@ class InselMonthlyEnergyBalance(Insel):
inputs = ['4.1', '4.2'] inputs = ['4.1', '4.2']
file = Insel._add_block(file, i_block, 'cum', inputs=inputs) file = Insel._add_block(file, i_block, 'cum', inputs=inputs)
in_1 = f'{i_block}.1'
in_2 = f'{i_block}.2'
i_block = 303 + len(surfaces) i_block = 303 + len(surfaces)
inputs = ['300.1', '300.2'] inputs = [in_1, in_2]
file = Insel._add_block(file, i_block, 'atend', inputs=inputs) file = Insel._add_block(file, i_block, 'atend', inputs=inputs)
i_block = 310 + len(surfaces) i_block = 310 + len(surfaces)