Ghost Cell Pattern in MPI

HPC

Concept Ghost cells refer to additional boundary cells that are replicated or exchanged between neighboring computational domains or processors. Data Exchange Using MPI_Isend and MPI_Irecv synchr...

Calling An Executable Within C++

QTextDocument

Describe A simple example of calling this exe in C++. Effect Tried to find the DPI of a JPG in Qt, but have trouble getting the right DPI value by using QImage. The same problem as mentioned in t...

Seperate Characters In a Qt Text

QTextDocument

Describe Implement a function that can seperate a Qt text from one document(entity) into multiple documents(entities), with the key focus being on determining the distance between adjacent characte...

The Precision Loss of Double-to-Float Conversion

Incorrect display

Problem The graph below illustrates the difference in the display scene beteewn our application and AutoCAD. We can see the point-value issue here. Debugging This curve are composed of B-splines,...

DXF File Format:UTF-8 and GBK

Encoding format

Problem When importing a DXF file, chinese characters may appear as messy codes and the distance between them is incorrect. (Note: This latter issue will not be addressed in this context.) The co...

Read and Write Time Optimization

Faster type conversion

Describe Extract date from a DXF file and write it to a txt file. Test File A DXF file has 1422390 lines and a size of 10.5M. Result Replication Times: 100 Average run time before optimization: 1...

Non-breaking Space and Normal Space

QString, std::wstring and std::string

Problem There is a file A B.dxf that is failing to import in our application. Debugging Upon further investigation, I found the space between A and B is a non-breaking space (char 160) in the QStr...