@@ -989,7 +989,7 @@ contains
989989
990990 do stl_id = 1 , num_stl_models
991991 allocate (models(stl_id)%model)
992- print * , " * Reading model: " // trim (stl_models(stl_id)%model_filepath)
992+ if (proc_rank == 0 ) print * , " * Reading model: " // trim (stl_models(stl_id)%model_filepath)
993993
994994 model = f_model_read(stl_models(stl_id)%model_filepath)
995995 params%scale (:) = stl_models(stl_id)%model_scale(:)
@@ -1002,9 +1002,7 @@ contains
10021002 params%scale (:) = 1._wp
10031003 end if
10041004
1005- if (proc_rank == 0 ) then
1006- print * , " * Transforming model."
1007- end if
1005+ if (proc_rank == 0 ) print * , " * Transforming model."
10081006
10091007 ! Get the model center before transforming the model
10101008 bbox_old = f_create_bbox(model)
@@ -1020,17 +1018,13 @@ contains
10201018 bbox = f_create_bbox(model)
10211019
10221020 ! Show the number of vertices in the original STL model
1023- if (proc_rank == 0 ) then
1024- print * , ' * Number of input model vertices:' , 3 * model%ntrs
1025- end if
1021+ if (proc_rank == 0 ) print * , ' * Number of input model vertices:' , 3 * model%ntrs
10261022
10271023 ! Need the cells that form the boundary of the flat projection in 2D
10281024 if (p == 0 ) call s_check_boundary(model, boundary_v, boundary_vertex_count, boundary_edge_count)
10291025
10301026 ! Show the number of edges and boundary edges in 2D STL models
1031- if (proc_rank == 0 .and. p == 0 ) then
1032- print * , ' * Number of 2D model boundary edges:' , boundary_edge_count
1033- end if
1027+ if (proc_rank == 0 .and. p == 0 ) print * , ' * Number of 2D model boundary edges:' , boundary_edge_count
10341028
10351029 if (proc_rank == 0 ) then
10361030 write (* , " (A, 3(2X, F20.10))" ) " > Model: Min:" , bbox%min (1 :3 )
0 commit comments