Skip to content

Commit

Permalink
Swap loop order
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Feb 27, 2023
1 parent 791a08f commit f117f32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
./suanPan-macos-openblas-vtk/bin/suanPan -v
windows-openblas-vtk-dev:
runs-on: windows-2022
timeout-minutes: 90
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
overwrite: true
windows-openblas-vtk:
runs-on: windows-2022
timeout-minutes: 90
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
overwrite: true
windows-openblas-vtk-no-avx:
runs-on: windows-2022
timeout-minutes: 90
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions Element/Shell/ShellBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ mat ShellBase::reshuffle(const mat& membrane_stiffness, const mat& plate_stiffne

mat total_stiffness(t_size, t_size, fill::zeros);

for(auto I = 0llu, K = 0llu; I < t_size; I += 6llu, K += 3llu) {
const span M(K, K + 2llu);
for(auto J = 0llu, L = 0llu; J < t_size; J += 6llu, L += 3llu) {
const span N(L, L + 2llu);
for(auto J = 0llu, L = 0llu; J < t_size; J += 6llu, L += 3llu) {
const span N(L, L + 2llu);
for(auto I = 0llu, K = 0llu; I < t_size; I += 6llu, K += 3llu) {
const span M(K, K + 2llu);
total_stiffness(I + m_dof, J + m_dof) = membrane_stiffness(M, N);
total_stiffness(I + p_dof, J + p_dof) = plate_stiffness(M, N);
}
Expand Down

0 comments on commit f117f32

Please sign in to comment.