• R/O
  • SSH

seeder: Commit

Repository for the seeder mesh generator. Now found at https://github.com/apes-suite/seeder


Commit MetaInfo

Revisiondd40cab6dba5ce21076f1383b2460cc5c3bba694 (tree)
Time2017-02-21 01:30:00
AuthorHarald Klimach <harald@klim...>
CommiterHarald Klimach

Log Message

Do not use preceding documentation lines inline.

Change Summary

Incremental Difference

diff -r b457560acd62 -r dd40cab6dba5 source/sdr_sphere_module.fpp
--- a/source/sdr_sphere_module.fpp Sat Feb 18 23:03:43 2017 +0100
+++ b/source/sdr_sphere_module.fpp Mon Feb 20 17:30:00 2017 +0100
@@ -32,8 +32,8 @@
3232
3333 !> type contains sphere information
3434 type sdr_sphere_type
35- real(kind=rk) :: origin(3) !> origin of the sphere
36- real(kind=rk) :: radius !> radius of the sphere
35+ real(kind=rk) :: origin(3) !< origin of the sphere
36+ real(kind=rk) :: radius !< radius of the sphere
3737 !> To choose what to do with intersection of this object
3838 !! if only_surface = true than the only the surface of the object
3939 !! is intersected
@@ -46,11 +46,11 @@
4646
4747 contains
4848
49- ! *****************************************************************************
49+ ! ****************************************************************************
5050 !> Load sphere information from config file.
5151 subroutine sdr_load_sphere(sphArray, spaObjArray, attr_pos, transform, &
5252 & conf, thandle )
53- ! --------------------------------------------------------------------------!
53+ ! -------------------------------------------------------------------------!
5454 !inferface variables
5555 !> growing array of spheres
5656 type(grw_sphereArray_type), intent(inout) :: sphArray
@@ -63,11 +63,11 @@
6363 !> lua state
6464 type(flu_state) :: conf
6565 integer, intent(in) :: thandle !< handle for canonical objects
66- ! --------------------------------------------------------------------------!
66+ ! -------------------------------------------------------------------------!
6767 ! local varaibles
6868 integer :: sph_handle, sph_subHandle
6969 integer :: iObj, nObjects
70- ! --------------------------------------------------------------------------!
70+ ! -------------------------------------------------------------------------!
7171
7272 write(logunit(1),*) 'Loading sphere: '
7373
@@ -98,13 +98,13 @@
9898
9999
100100 end subroutine sdr_load_sphere
101- ! *****************************************************************************
101+ ! ****************************************************************************
102102
103- ! *****************************************************************************
103+ ! ****************************************************************************
104104 !> This routine single sphere from object table
105105 subroutine sdr_load_sphere_single(sphArray, spaObjArray, attr_pos, transform,&
106106 & conf, thandle )
107- ! --------------------------------------------------------------------------!
107+ ! -------------------------------------------------------------------------!
108108 !inferface variables
109109 !> growing array of spheres
110110 type(grw_sphereArray_type), intent(inout) :: sphArray
@@ -117,11 +117,11 @@
117117 !> lua state
118118 type(flu_state) :: conf
119119 integer, intent(in) :: thandle !< handle for canonical objects
120- ! --------------------------------------------------------------------------!
120+ ! -------------------------------------------------------------------------!
121121 integer :: iError, vError(3), errFatal(3)
122122 type(sdr_sphere_type) :: loc_sphere
123123 type(sdr_spatialObj_type) :: spatialObj
124- ! --------------------------------------------------------------------------!
124+ ! -------------------------------------------------------------------------!
125125 errFatal = aoterr_fatal
126126
127127 ! read origin of sphere
@@ -190,12 +190,12 @@
190190 ! ****************************************************************************
191191 !> This function checks intesection of solid cube and sphere
192192 function sphereCubeOverlap(sphere, cube) result(overlap)
193- ! --------------------------------------------------------------------------!
194- !inferface variables
193+ ! -------------------------------------------------------------------------!
194+ !interface variables
195195 type(sdr_sphere_type), intent(in) :: sphere !< spacer geometry data
196196 type(sdr_cube_type), intent(in) :: cube
197197 logical :: overlap !< return value
198- ! --------------------------------------------------------------------------!
198+ ! -------------------------------------------------------------------------!
199199 if(sphere%only_surface) then
200200 overlap = hollowSphereCubeOverlap(sphere, cube)
201201 else
@@ -212,17 +212,17 @@
212212 !! http://tog.acm.org/resources/GraphicsGems/gems/BoxSphere.c
213213 !!
214214 function hollowSphereCubeOverlap(sphere, cube) result(overlap)
215- ! --------------------------------------------------------------------------!
215+ ! -------------------------------------------------------------------------!
216216 !inferface variables
217217 type(sdr_sphere_type), intent(in) :: sphere !< spacer geometry data
218218 type(sdr_cube_type), intent(in) :: cube
219219 logical :: overlap !< return value
220- ! --------------------------------------------------------------------------!
220+ ! -------------------------------------------------------------------------!
221221 ! local variables
222222 real(kind=rk) :: rsqr,a, b
223223 integer :: i
224224 real(kind=rk) :: dmin, dmax, cube_max(3)
225- ! --------------------------------------------------------------------------!
225+ ! -------------------------------------------------------------------------!
226226 !minimum distance
227227 dmin = 0.0_rk
228228 !maximum distance
@@ -256,17 +256,17 @@
256256 !! http://tog.acm.org/resources/GraphicsGems/gems/BoxSphere.c
257257 !!
258258 function solidSphereCubeOverlap(sphere, cube) result(overlap)
259- ! --------------------------------------------------------------------------!
259+ ! -------------------------------------------------------------------------!
260260 !inferface variables
261261 type(sdr_sphere_type), intent(in) :: sphere !< spacer geometry data
262262 type(sdr_cube_type), intent(in) :: cube
263263 logical :: overlap !< return value
264- ! --------------------------------------------------------------------------!
264+ ! -------------------------------------------------------------------------!
265265 ! local variables
266266 real(kind=rk) :: rsqr
267267 integer :: i
268268 real(kind=rk) :: dmin, cube_max(3)
269- ! --------------------------------------------------------------------------!
269+ ! -------------------------------------------------------------------------!
270270 !minimum distance
271271 dmin = 0.0_rk
272272
Show on old repository browser