Skip to content

Commit

Permalink
Merge pull request #405 from maorz1998/master
Browse files Browse the repository at this point in the history
update GPU example
  • Loading branch information
maorz1998 authored Dec 25, 2023
2 parents 333ede3 + 7a69b30 commit b34b021
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 344 deletions.
106 changes: 0 additions & 106 deletions applications/solvers/dfLowMachFoam/EEqn_GPU.H

This file was deleted.

105 changes: 0 additions & 105 deletions applications/solvers/dfLowMachFoam/UEqn_GPU.H

This file was deleted.

129 changes: 0 additions & 129 deletions applications/solvers/dfLowMachFoam/YEqn_GPU.H

This file was deleted.

2 changes: 0 additions & 2 deletions applications/solvers/dfLowMachFoam/rhoEqn.H
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,4 @@ Description
time_monitor_rhoEqn_solve += double(end1 - start1) / double(CLOCKS_PER_SEC);
}
#endif
//#undef CPUSolver_
//#define GPUSolverNew_
// ************************************************************************* //
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

chemistry on;
chemistry off;

CanteraMechanismFile "ES80_H2-7-16.yaml";

Expand All @@ -40,6 +40,12 @@ TorchSettings
coresPerNode 4;
}

AmgxSettings
{
UEqnSettingPath "system/amgxUOptions";
pEqnSettingPath "system/amgxpOptions";
}

loadbalancing
{
active true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"config_version": 2,
"solver": {
"preconditioner": {
"scope": "precond",
"max_iters": 1,
"solver": "MULTICOLOR_DILU"
},
"use_scalar_norm": 1,
"solver": "PBICGSTAB",
"print_solve_stats": 0,
"obtain_timings": 0,
"monitor_residual": 1,
"store_res_history": 1,
"convergence": "RELATIVE_INI_CORE",
"max_iters": 20,
"scope": "main",
"tolerance": 1e-5,
"norm": "L2"
}
}
Loading

0 comments on commit b34b021

Please sign in to comment.