Skip to content

Some_hacks

BenMql edited this page Nov 8, 2023 · 6 revisions

How to archive the geometry and domain decomposition files

Coral generates one geometry.core???? and one domainDecmp.core???? file per process. Those files may represent a large number of files when running Coral on a large number of CPUs, which may hurt your file quota on some clusters. Below is a command that can be executed after the computations are done to tar most of the files, and keep only geometry.core0000 and domainDecmp.core0000 available for post-processing:

cd Geometry/ && cp domDecmp.core0000 bcp.domDecmp.core0000 && cp geometry.core0000 bcp.geometry.core0000 && tar -cvf domDecmp.tar domDecmp.* && tar -cvf geometry.tar geometry.* && rm domDecmp.core???? geometry.core???? && mv bcp.domDecmp.core0000 domDecmp.core0000 && mv bcp.geometry.core0000 geometry.core0000

Git: How to download a tarball of the repository

You may use the command

wget https://github.com/BenMql/coral/archive/v1.1.9.tar.gz

where v1.1.9 refers to any tag, and should be replaced by the last published tag. This is particularly useful when the cluster you use has limited access to the web (and no access to github). If this case, you can download a tarball on your desktop machine, and then scp this file to the cluster. To get the last version, use:

wget https://github.com/BenMql/coral/tarball/master