Skip to content

Commit 5e77efe

Browse files
committed
Improve some error messages
1 parent 55598e8 commit 5e77efe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/core/utils/GpuError.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ inline bool gpu_assert_watch_beta(cudaError_t code, const char* filename, int li
4848
"simulation objects are initially within the domain you specified.\n";
4949
out_msg << "------------------------------------\n";
5050
out_msg
51-
<< "If the velocity is fair, and you are using a custom force model, one thing to do is to "
51+
<< "If the velocity is fair, and you *are* using a custom force model, one thing to do is to "
5252
"SetForceCalcThreadsPerBlock to a small number like 128 (see README.md troubleshooting for "
53-
"details).\nIf you are going to discuss this on forum https://groups.google.com/g/projectchrono, "
53+
"details).\nIf you are not using a custom model, one thing to do is to ensure the simulation "
54+
"world size (InstructBoxDomainDimension) is not orders of magnitude larger than the actual "
55+
"space the simulation entities take up.\nIf none works and you are going to discuss this on forum "
56+
"https://groups.google.com/g/projectchrono, "
5457
"please include a visual rendering of the simulation before crash.\n\n";
5558
std::cerr << out_msg.str();
5659
std::stringstream out;

0 commit comments

Comments
 (0)