#NEWLINE# def make_well( pth , k , i , j , Qt ) : #NEWLINE# #INDENT# fn = os . path . join ( pth , 'DG.wel' ) #NEWLINE# f = open ( fn , 'w' ) #NEWLINE# f . write ( '# Well file for MODFLOW, generated by Flopy.\n' ) #NEWLINE# f . write ( '         1         0\n' ) #NEWLINE# f . write ( '         0         0 # stress period 0\n' ) #NEWLINE# f . write ( '         1         0 # stress period 1\n' ) #NEWLINE# f . write ( '{:10d}{:10d}{:10d}{:10.2f}\n' . format ( ( k + 1 ) , ( i + 1 ) , ( k + 1 ) , Qt ) ) #NEWLINE# f . close ( )