Tidy up of logging and initial MPI task farm work.

这个提交包含在:
Craig Warren
2020-03-06 16:48:21 +00:00
父节点 01d28c204e
当前提交 1e4237c2f5
共有 31 个文件被更改,包括 739 次插入267 次删除

查看文件

@@ -26,7 +26,7 @@ from ..cython.geometry_primitives import build_triangle
from ..exceptions import CmdInputError
from ..materials import Material
log = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
class Triangle(UserObjectGeometry):
@@ -156,6 +156,6 @@ class Triangle(UserObjectGeometry):
if thickness > 0:
dielectricsmoothing = 'on' if averaging else 'off'
log.info(f"Triangle with coordinates {x1:g}m {y1:g}m {z1:g}m, {x2:g}m {y2:g}m {z2:g}m, {x3:g}m {y3:g}m {z3:g}m and thickness {thickness:g}m of material(s) {', '.join(materialsrequested)} created, dielectric smoothing is {dielectricsmoothing}.")
logger.info(f"Triangle with coordinates {x1:g}m {y1:g}m {z1:g}m, {x2:g}m {y2:g}m {z2:g}m, {x3:g}m {y3:g}m {z3:g}m and thickness {thickness:g}m of material(s) {', '.join(materialsrequested)} created, dielectric smoothing is {dielectricsmoothing}.")
else:
log.info(f"Triangle with coordinates {x1:g}m {y1:g}m {z1:g}m, {x2:g}m {y2:g}m {z2:g}m, {x3:g}m {y3:g}m {z3:g}m of material(s) {', '.join(materialsrequested)} created.")
logger.info(f"Triangle with coordinates {x1:g}m {y1:g}m {z1:g}m, {x2:g}m {y2:g}m {z2:g}m, {x3:g}m {y3:g}m {z3:g}m of material(s) {', '.join(materialsrequested)} created.")