Skip to content

Commit

Permalink
Merge branch 'master' of github.com:UG4/ugcore
Browse files Browse the repository at this point in the history
  • Loading branch information
LogashenkoDL committed Jul 30, 2024
2 parents 40e5f1d + fec4fe7 commit f8f1414
Show file tree
Hide file tree
Showing 10 changed files with 4,024 additions and 17 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/jenkins-trigger.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: Trigger Jenkins CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:
# This workflow contains a single job called "build"
build:
name: Build
trigger-jenkins-job:
runs-on: ubuntu-latest
steps:
- name: Trigger jenkins job
uses: anaegel/jenkins-githubaction@master
- id: triggerjenkinsjob
uses: mickeygoussetorg/trigger-jenkins-job@v1
with:
url: ${{ secrets.JENKINS_URL }}
job_name: ug-build-pipeline
username: ${{ secrets.JENKINS_USER }}
api_token: ${{ secrets.JENKINS_TOKEN }}
timeout: "3600"
interval: "300"
jenkins-server: ${{ secrets.JENKINS_URL }} # URL of the jenkins server. ex: http://myjenkins.acme.com:8080
jenkins-job: "ug-build-pipeline" # The name of the jenkins job to run
jenkins-username: ${{ secrets.JENKINS_USER }} # user name for accessing jenkins
jenkins-pat: ${{ secrets.JENKINS_TOKEN }} # personal Access token for accessing Jenkins
poll-time: 90 # how often (seconds) to poll the jenkins server for results
timeout-value: 3600 # How long (seconds) to poll before timing out the action
verbose: true # true/false - turns on extra logging
2 changes: 1 addition & 1 deletion scripts/shell/schedulers/pbs-generic
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function UJS_Submit
exit
fi
jobid=`echo $jobid | sed 's/\([0-9]*\).*/\1/'`
fi
fi
}


Expand Down
11 changes: 10 additions & 1 deletion ugbase/bridge/grid_bridges/file_io_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "lib_grid/multi_grid.h"
#include "lib_grid/file_io/file_io.h"
#include "lib_grid/file_io/file_io_ugx.h"
#include "lib_grid/file_io/file_io_vtu.h"

using namespace std;

Expand Down Expand Up @@ -77,6 +78,13 @@ bool SaveGridHierarchy(MultiGrid& mg, const char* filename)
return SaveGridToFile(mg, mg.get_hierarchy_handler(), filename);
}

void SetVTURegionOfInterestIdentifier( char const * regOfInt )
{
PROFILE_FUNC_GROUP("grid");
GridReaderVTU::setRegionOfInterestIdentifier( std::string( regOfInt ) );
return;
}


void RegisterGridBridge_FileIO(Registry& reg, string parentGroup)
{
Expand Down Expand Up @@ -129,7 +137,8 @@ void RegisterGridBridge_FileIO(Registry& reg, string parentGroup)
.add_function("SaveParallelGridLayout", &SaveParallelGridLayout,
grp, "", "mg#filename#offset")
.add_function("SaveSurfaceViewTransformed", &SaveSurfaceViewTransformed)
.add_function("SaveGridLevelToFile", &SaveGridLevelToFile);
.add_function("SaveGridLevelToFile", &SaveGridLevelToFile)
.add_function("SetVTURegionOfInterestIdentifier", static_cast<void (*)(char const *)>(&SetVTURegionOfInterestIdentifier) );
}

}// end of namespace
Expand Down
1 change: 1 addition & 0 deletions ugbase/lib_grid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ set(srcAlgorithms algorithms/debug_util.cpp
algorithms/extrusion/extrude.cpp
algorithms/extrusion/cylinder_extrusion.cpp
algorithms/extrusion/expand_layers.cpp
algorithms/extrusion/expand_layers_arte.cpp
algorithms/projections/overlying_subset_finder.hpp
algorithms/projections/z_ray_tracer.hpp
refinement/projectors/projection_handler.cpp
Expand Down
1 change: 0 additions & 1 deletion ugbase/lib_grid/algorithms/extrusion/expand_layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ bool ExpandFractures2d(Grid& grid, SubsetHandler& sh, const vector<FractureInfo>
return true;
}


/** Selects all involved geometic objects and assigns marks to them.
* If required, som edges may be split, so that we always operate
* on a fully expandable fracture.
Expand Down
Loading

0 comments on commit f8f1414

Please sign in to comment.