Skip to content

Compared to 0.9, 1.0.1 does not handle re-indentation correctly #90

@PetrKryslUCSD

Description

@PetrKryslUCSD

For instance, this code is not re-indented correctly when I do "select all" and "reindent":

function e1_hole_q4()

    function solve(iteration, fens, fes)
     
        # Identify the "growth" layer of elements
        node_is_act_bdry = fill(false, count(fens))
        node_is_act_bdry[lopeningn] .= true
        el_in_growth_layer = fill(false, count(fes))
        for i in 1:count(fes)
            for j in fes.conn[i]
                if node_is_act_bdry[j]
                    el_in_growth_layer[i] = true
                    break
                end
            end
        end
        
# Apply mechanical support conditions to eliminate rigid body
# displacements
u = NodalField(zeros(size(fens.xyz, 1), 2)) # displacement field
setebc!(u, lleft0n, 1, 0.0)
setebc!(u, lleft0n, 2, 0.0)
setebc!(u, lright0n, 2, 0.0)
applyebc!(u)
numberdofs!(u)
end
end

ST3 with Julia-sublime package 0.9 can do it right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions